From c12fb24404dda39c847d94298c4f981591d12a81 Mon Sep 17 00:00:00 2001 From: Rohan Sircar Date: Wed, 28 Apr 2021 15:50:18 +0530 Subject: [PATCH 1/4] 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 From 7ad00ac0acb20bd7854bbb7ac8561624f32c4d2c Mon Sep 17 00:00:00 2001 From: Rohan Sircar Date: Wed, 28 Apr 2021 16:16:57 +0530 Subject: [PATCH 2/4] update drone yaml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 5f1ce13..ba2a774 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,6 +18,6 @@ steps: - cargo test --verbose --all - name: package image: guangie88/rustfmt-clippy:1.51.0-stable - depends_on: [check, test, lint] + depends_on: [test, lint] commands: - cargo build --verbose --all From 0e5b787657393460068e718837c92e8a46f623b1 Mon Sep 17 00:00:00 2001 From: Rohan Sircar Date: Wed, 28 Apr 2021 16:21:42 +0530 Subject: [PATCH 3/4] update drone yaml --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index ba2a774..75b0ce5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,11 +9,13 @@ steps: - cargo check --workspace - name: lint image: guangie88/rustfmt-clippy:1.51.0-stable + depends_on: [check] commands: - cargo fmt --all -- --check - cargo clippy -- -D warnings - name: test image: guangie88/rustfmt-clippy:1.51.0-stable + depends_on: [check] commands: - cargo test --verbose --all - name: package From 75039778debfe31b2c9549b63bddb455afcb754b Mon Sep 17 00:00:00 2001 From: Rohan Sircar Date: Wed, 28 Apr 2021 16:37:04 +0530 Subject: [PATCH 4/4] update drone yaml --- .drone.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 75b0ce5..1409655 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,20 +6,18 @@ steps: - name: check image: guangie88/rustfmt-clippy:1.51.0-stable commands: + - cargo fmt --all -- --check - cargo check --workspace - name: lint image: guangie88/rustfmt-clippy:1.51.0-stable - depends_on: [check] commands: - - cargo fmt --all -- --check - cargo clippy -- -D warnings - name: test image: guangie88/rustfmt-clippy:1.51.0-stable - depends_on: [check] commands: - - cargo test --verbose --all + - cargo test --all - name: package image: guangie88/rustfmt-clippy:1.51.0-stable - depends_on: [test, lint] + depends_on: [check, test, lint] commands: - - cargo build --verbose --all + - cargo build --release --all