From 2d0927cff28c06ec2dd72b2ea0113b9d2dee83be Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Tue, 18 Aug 2020 21:06:19 -0600 Subject: [PATCH] Separate drone steps and add clippy --- .drone.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8899614..30f9749 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,14 +13,32 @@ steps: mount: - ./target +- name: build + image: rust:1 + volumes: + - name: cargo-registry + path: /usr/local/cargo/registry + commands: + - cargo build --verbose + - name: test image: rust:1 volumes: - name: cargo-registry path: /usr/local/cargo/registry commands: - - cargo build --verbose --all - - cargo test --verbose --all + - cargo test --verbose + +- name: clippy + image: rust:1 + failure: ignore + volumes: + - name: cargo-registry + path: /usr/local/cargo/registry + commands: + - rustup component add clippy + - cargo clean -p sprinklers_rs + - cargo clippy --all-targets --all-features -- -D warnings - name: rebuild-target-cache image: drillster/drone-volume-cache