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:
parent
30ab1dc7bb
commit
5a3e735e4b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue