From c12fb24404dda39c847d94298c4f981591d12a81 Mon Sep 17 00:00:00 2001 From: Rohan Sircar Date: Wed, 28 Apr 2021 15:50:18 +0530 Subject: [PATCH] update drone ci file --- .drone.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1c3f692..5f1ce13 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,9 +1,23 @@ +--- kind: pipeline name: default steps: + - name: check + image: guangie88/rustfmt-clippy:1.51.0-stable + commands: + - cargo check --workspace + - name: lint + image: guangie88/rustfmt-clippy:1.51.0-stable + commands: + - cargo fmt --all -- --check + - cargo clippy -- -D warnings - name: test - image: rust:1.51.0 + image: guangie88/rustfmt-clippy:1.51.0-stable + commands: + - cargo test --verbose --all + - name: package + image: guangie88/rustfmt-clippy:1.51.0-stable + depends_on: [check, test, lint] commands: - cargo build --verbose --all - - cargo test --verbose --all