From 7d478d997620c0af41a6ffb8b3f29dc6dda2cb98 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 20 Sep 2021 15:00:31 +0200 Subject: Stricter Rust formating rules and build in the CI --- .drone.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to '.drone.yml') diff --git a/.drone.yml b/.drone.yml index 34200b7..8c1663a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,18 +7,17 @@ workspace: steps: - name: code style - image: rust:1.47 + image: rustlang/rust:nightly-slim commands: - - rustup component add rustfmt - - cargo fmt --all -- --check + - rustup component add rustfmt --toolchain nightly + - cargo +nightly fmt --all -- --check # - name: code quality # image: rust:1.47 # commands: # - cargo clippy -- --deny warnings -# - name: test -# image: rust:1.47 -# commands: -# - cargo build --verbose --all -# - cargo test --verbose --all +- name: test + image: rust:1.47 + commands: + - cargo build --verbose --all + - cargo test --verbose --all - \ No newline at end of file -- cgit v1.2.3 From 68cb4d5482649baca3a79d3fd0e3449a6af0533b Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 20 Sep 2021 15:59:52 +0200 Subject: Use the official rust image --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.drone.yml') diff --git a/.drone.yml b/.drone.yml index 8c1663a..f431761 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,8 +7,9 @@ workspace: steps: - name: code style - image: rustlang/rust:nightly-slim + image: rust:1.47 commands: + - rustup toolchain install nightly-x86_64-unknown-linux-gnu - rustup component add rustfmt --toolchain nightly - cargo +nightly fmt --all -- --check # - name: code quality -- cgit v1.2.3