From 5a3e735e4bd5d52ead021320eabc23a239ed3e53 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 25 May 2021 16:18:00 -0400 Subject: [PATCH] Try some tweaks to .gitlab-ci.yml The "--all" flag is deprecated in favor of "--workspace", which isn't actually needed here. "--all-features" catches a few things that we want to make sure we're catching. Let's try out cargo doc and make sure that passes too. --- .gitlab-ci.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5f7064141..c60f6462e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,11 +9,11 @@ rust-latest: stage: build image: rust:latest script: - - cargo build --verbose --target x86_64-unknown-linux-gnu --all - - cargo test --verbose --all + - cargo build --verbose --target x86_64-unknown-linux-gnu + - cargo test --verbose - rustup component add clippy rustfmt - - cargo clippy -- -D warnings - - cargo fmt --all -- --check + - cargo clippy --all-features -- -D warnings + - cargo fmt -- --check rust-latest-async-std: stage: build @@ -26,8 +26,9 @@ rust-nightly: image: rustlang/rust:nightly allow_failure: true script: - - cargo build --verbose --target x86_64-unknown-linux-gnu --all - - cargo test --verbose --all + - cargo build --verbose --target x86_64-unknown-linux-gnu --all-features + - cargo test --verbose --all-features - rustup component add clippy - - cargo clippy + - cargo clippy --all-features + - RUSTDOCFLAGS="-Dwarnings" cargo doc --all-features --document-private-items