Skip to content

Commit

Permalink
Merge pull request #72 from crate-ci/workspace-disable-default-features
Browse files Browse the repository at this point in the history
Disable --no-default-features on workspace crates
  • Loading branch information
Inovker0416 committed Dec 23, 2019
2 parents e317871 + c96cb19 commit bd7af25
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions azure/cargo-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,22 @@ jobs:
echo '##vso[task.setvariable variable=is_locked]false';
fi
displayName: Are dependencies locked?
- bash: |
if grep -P '^\s*\[workspace\]' Cargo.toml; then
echo '##vso[task.setvariable variable=is_workspace]true';
else
echo '##vso[task.setvariable variable=is_workspace]false';
fi
displayName: Is repository a workspace?
- script: cargo check --locked
condition: and(succeeded(), eq(variables.is_locked, 'true'))
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
# https://github.com/rust-lang/cargo/issues/7727
condition: and(succeeded(), eq(variables.is_workspace, 'false'))
- ${{ if eq('true', parameters.all_features) }}:
- script: cargo check --all --bins --examples --tests --all-features
displayName: Check compilation w/ all features
Expand Down

0 comments on commit bd7af25

Please sign in to comment.