Skip to content

Commit

Permalink
Add param to turn off no-default-features builds on workspaces #66
Browse files Browse the repository at this point in the history
Leaves --no-default-features step to build by default, but allows
turning it off for workspaces.

Fixes #66
  • Loading branch information
qdot committed Nov 21, 2019
1 parent 7b3f00a commit 00e02a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions azure/cargo-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ parameters:
rust: stable
benches: false
setup: []
no_features: true
all_features: false

jobs:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions azure/nightly-stages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ parameters:
test_ignored: false
single_threaded: false
check_all_features: true
check_no_features: true
test_features: []

stages:
Expand All @@ -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, '') }}:
Expand Down

0 comments on commit 00e02a1

Please sign in to comment.