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.
This commit is contained in:
Nick Mathewson 2021-05-25 16:18:00 -04:00
parent 30ab1dc7bb
commit 5a3e735e4b
1 changed files with 8 additions and 7 deletions

View File

@ -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