ci: run clippy with default features as well

This commit is contained in:
Felix Krull 2019-05-31 20:19:14 +02:00 committed by Colin Walters
parent 54be07c6b9
commit a521c838f5

View File

@ -1,8 +1,6 @@
image: rust:latest image: rust:latest
variables: variables:
# --all-features
CURRENT_FEATURES: --features v2018_9
SCCACHE_URL: https://github.com/mozilla/sccache/releases/download/0.2.8/sccache-0.2.8-x86_64-unknown-linux-musl.tar.gz SCCACHE_URL: https://github.com/mozilla/sccache/releases/download/0.2.8/sccache-0.2.8-x86_64-unknown-linux-musl.tar.gz
CARGO_TARGET_DIR: ${CI_PROJECT_DIR}/target CARGO_TARGET_DIR: ${CI_PROJECT_DIR}/target
CARGO_HOME: ${CI_PROJECT_DIR}/cargo CARGO_HOME: ${CI_PROJECT_DIR}/cargo
@ -35,18 +33,24 @@ check:
- git diff -R --exit-code - git diff -R --exit-code
# build # build
ostree: .build-step: &build-step
stage: build stage: build
script: script:
- rustup component add clippy - rustup component add clippy
- cargo clippy --all ${CURRENT_FEATURES} -- -D warnings - cargo clippy --all ${FEATURES} -- -D warnings
- cargo test --verbose --manifest-path sys/Cargo.toml ${CURRENT_FEATURES} - cargo test --verbose --manifest-path sys/Cargo.toml ${FEATURES}
- cargo test --verbose ${CURRENT_FEATURES} - cargo test --verbose ${FEATURES}
ostree_default_features: ostree:
stage: build <<: *build-step
script: variables:
- cargo test --verbose # TODO: need to switch back to --all-features
FEATURES: --features v2018_9
ostree_default-features:
<<: *build-step
variables:
FEATURES: ""
# docs # docs
docs: docs: