From 22278e04e678009d8b76f7df9385b3670815b2cb Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 14 Nov 2023 21:37:02 -0700 Subject: [PATCH] use latest drone config --- .drone.yml | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 28f890c..1c72340 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,8 +3,23 @@ kind: pipeline type: docker name: test libpso +concurrency: + limit: 1 + +environment: + CARGO_INCREMENTAL: false + steps: -- name: cargo build +- name: clean cache + image: rustlang/rust:nightly + volumes: + - name: cache + path: /usr/local/cargo + - name: target-cache + path: /drone/src/target + commands: + - cargo prune +- name: build image: rustlang/rust:nightly volumes: - name: cache @@ -12,8 +27,8 @@ steps: - name: target-cache path: /drone/src/target commands: - - cargo build -- name: cargo test + - cargo build +- name: clippy! image: rustlang/rust:nightly volumes: - name: cache @@ -21,7 +36,16 @@ steps: - name: target-cache path: /drone/src/target commands: - - cargo test + - cargo clippy -- --deny warnings +- name: test + image: rustlang/rust:nightly + volumes: + - name: cache + path: /usr/local/cargo + - name: target-cache + path: /drone/src/target + commands: + - cargo test --jobs 1 volumes: - name: cache @@ -30,4 +54,3 @@ volumes: - name: target-cache host: path: /home/drone/cargo-cache -