diff options
author | Taiki Endo <te316e89@gmail.com> | 2019-11-23 07:13:18 +0900 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2019-11-22 14:13:18 -0800 |
commit | 7cd63fb94608ce8c70b8a7a7a4118cba658b3bcc (patch) | |
tree | 7c8e07bec17c7b6002f808965b0c8d5a7c642a95 /ci | |
parent | bf741fec359736d465fa588d8feea1a48e19c055 (diff) |
ci: use -Z avoid-dev-deps in features check instead of --no-dev-deps (#1812)
Diffstat (limited to 'ci')
-rw-r--r-- | ci/azure-check-features.yml | 32 | ||||
-rw-r--r-- | ci/azure-check-minrust.yml | 2 | ||||
-rw-r--r-- | ci/azure-test-stable.yml | 23 |
3 files changed, 33 insertions, 24 deletions
diff --git a/ci/azure-check-features.yml b/ci/azure-check-features.yml new file mode 100644 index 00000000..a80af0d3 --- /dev/null +++ b/ci/azure-check-features.yml @@ -0,0 +1,32 @@ +jobs: +- job: ${{ parameters.name }} + displayName: Check features + strategy: + matrix: + Linux: + vmImage: ubuntu-16.04 + MacOS: + vmImage: macOS-10.13 + Windows: + vmImage: vs2017-win2016 + pool: + vmImage: $(vmImage) + + steps: + - template: azure-install-rust.yml + parameters: + rust_version: ${{ parameters.rust }} + + - template: azure-patch-crates.yml + + - script: cargo install cargo-hack + displayName: Install cargo-hack + + # Check each feature works properly + # * --each-feature + # run for each feature which includes --no-default-features and default features of package + # * -Z avoid-dev-deps + # build without dev-dependencies to avoid https://github.com/rust-lang/cargo/issues/4866 + # tracking-issue: https://github.com/rust-lang/cargo/issues/5133 + - script: cargo hack check --all --each-feature -Z avoid-dev-deps + displayName: cargo hack check --all --each-feature diff --git a/ci/azure-check-minrust.yml b/ci/azure-check-minrust.yml index 7a5e602a..1a28f53b 100644 --- a/ci/azure-check-minrust.yml +++ b/ci/azure-check-minrust.yml @@ -6,7 +6,7 @@ jobs: steps: - template: azure-install-rust.yml parameters: - rust_version: ${{ parameters.rust_version }} + rust_version: ${{ parameters.rust }} - template: azure-patch-crates.yml diff --git a/ci/azure-test-stable.yml b/ci/azure-test-stable.yml index e33b6bbc..5d806a6a 100644 --- a/ci/azure-test-stable.yml +++ b/ci/azure-test-stable.yml @@ -19,9 +19,6 @@ jobs: parameters: rust_version: ${{ parameters.rust }} - - script: cargo install cargo-hack - displayName: Install cargo-hack - - template: azure-is-release.yml - ${{ each crate in parameters.crates }}: @@ -41,16 +38,6 @@ jobs: displayName: ${{ crate }} - cargo test --all-features workingDirectory: $(Build.SourcesDirectory)/${{ crate }} - # Check each specified feature works properly - # * --each-feature - run for each feature which includes --no-default-features and default features of package - # * --no-dev-deps - build without dev-dependencies to avoid https://github.com/rust-lang/cargo/issues/4866 - - script: cargo hack check --each-feature --no-dev-deps - env: - LOOM_MAX_PREEMPTIONS: 2 - CI: 'True' - displayName: ${{ crate }} - cargo hack check --each-feature - workingDirectory: $(Build.SourcesDirectory)/${{ crate }} - - template: azure-patch-crates.yml - ${{ each crate in parameters.crates }}: @@ -69,13 +56,3 @@ jobs: CI: 'True' displayName: ${{ crate }} - cargo test --all-features workingDirectory: $(Build.SourcesDirectory)/${{ crate }} - - # Check each specified feature works properly - # * --each-feature - run for each feature which includes --no-default-features and default features of package - # * --no-dev-deps - build without dev-dependencies to avoid https://github.com/rust-lang/cargo/issues/4866 - - script: cargo hack check --each-feature --no-dev-deps - env: - LOOM_MAX_PREEMPTIONS: 2 - CI: 'True' - displayName: ${{ crate }} - cargo hack check --each-feature - workingDirectory: $(Build.SourcesDirectory)/${{ crate }} |