diff --git a/azure/cargo-check.yml b/azure/cargo-check.yml index f788f49..c4fcac8 100644 --- a/azure/cargo-check.yml +++ b/azure/cargo-check.yml @@ -2,6 +2,7 @@ parameters: rust: stable benches: false setup: [] + no_features: true all_features: false jobs: @@ -31,8 +32,9 @@ jobs: displayName: Check that Cargo.lock is satisfiable - script: cargo check --all --bins --examples --tests displayName: Check compilation w/ default features - - script: cargo check --all --bins --examples --tests --no-default-features - displayName: Check compilation w/ no features + - ${{ if eq('true', parameters.no_features) }}: + - script: cargo check --all --bins --examples --tests --no-default-features + displayName: Check compilation w/ no features - ${{ if eq('true', parameters.all_features) }}: - script: cargo check --all --bins --examples --tests --all-features displayName: Check compilation w/ all features diff --git a/azure/nightly-stages.yml b/azure/nightly-stages.yml index 35ca302..cd2aba4 100644 --- a/azure/nightly-stages.yml +++ b/azure/nightly-stages.yml @@ -6,6 +6,7 @@ parameters: test_ignored: false single_threaded: false check_all_features: true + check_no_features: true test_features: [] stages: @@ -25,6 +26,7 @@ stages: benches: ${{ parameters.benches }} setup: ${{ parameters.setup }} all_features: ${{ parameters.check_all_features }} + no_features: ${{ parameters.check_no_features }} rust: nightly - stage: ${{ format('{0}test', parameters.prefix) }} ${{ if ne(parameters.prefix, '') }}: