From a5b688b38c6b21a67c26aaed8df9d41b4956c59a Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Tue, 3 Nov 2020 18:57:42 +0900 Subject: [PATCH] fix check-features.sh --- ci/check-features.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ci/check-features.sh b/ci/check-features.sh index 2e310683d..bf659e84b 100755 --- a/ci/check-features.sh +++ b/ci/check-features.sh @@ -13,16 +13,14 @@ if [[ "$RUST_VERSION" != "nightly"* ]]; then # * `--no-dev-deps` - build without dev-dependencies to avoid https://github.com/rust-lang/cargo/issues/4866 # * `--exclude benchmarks` - benchmarks doesn't published. # * `--skip nightly` - skip `nightly` feature as requires nightly compilers. - cargo hack check --all --feature-powerset --no-dev-deps --exclude benchmarks --skip nightly + cargo hack check --all --feature-powerset --no-dev-deps --exclude benchmarks --skip nightly --exclude-all-features else # On nightly, all feature combinations should work. cargo hack check --all --feature-powerset --no-dev-deps --exclude benchmarks - # TODO(taiki-e): if https://github.com/taiki-e/cargo-hack/issues/42 merged, remove this. - cargo hack check --all --all-features --no-dev-deps --exclude benchmarks # Check for no_std environment. - cargo hack check --all --feature-powerset --no-dev-deps --exclude benchmarks --target thumbv7m-none-eabi --skip std,default + cargo hack check --all --feature-powerset --no-dev-deps --exclude benchmarks --target thumbv7m-none-eabi --skip std,default --exclude-all-features # * `--features nightly` is required for enable `cfg_target_has_atomic`. # * `--ignore-unknown-features` - some crates doesn't have 'nightly' feature - cargo hack check --all --feature-powerset --no-dev-deps --exclude benchmarks --target thumbv6m-none-eabi --skip std,default --features nightly --ignore-unknown-features + cargo hack check --all --feature-powerset --no-dev-deps --exclude benchmarks --target thumbv6m-none-eabi --skip std,default --exclude-all-features --features nightly --ignore-unknown-features fi