ci: scope each tests/examples invocation to a specific crate (#1238)

This commit is contained in:
Ivan Petkov
2019-07-03 08:49:05 -07:00
committed by GitHub
parent ceed29586b
commit 722eb257be
2 changed files with 24 additions and 19 deletions
+10 -19
View File
@@ -31,14 +31,12 @@ jobs:
rust: $(nightly) rust: $(nightly)
crates: crates:
# - tokio-fs # - tokio-fs
tokio-reactor: tokio-reactor: []
- default
# - tokio-signal # - tokio-signal
tokio-tcp: tokio-tcp:
- default - incoming
# - tokio-tls # - tokio-tls
tokio-udp: tokio-udp: []
- default
# - tokio-uds # - tokio-uds
# Test crates that are NOT platform specific # Test crates that are NOT platform specific
@@ -49,24 +47,17 @@ jobs:
rust: $(nightly) rust: $(nightly)
crates: crates:
# - tokio-buf # - tokio-buf
tokio-codec: tokio-codec: []
- default tokio-current-thread: []
tokio-current-thread: tokio-executor: []
- default tokio-io: []
tokio-executor:
- default
tokio-io:
- default
tokio-sync: tokio-sync:
- default - async-traits
tokio-macros: tokio-macros: []
- default
# - tokio-threadpool # - tokio-threadpool
tokio-timer: tokio-timer:
- default
- async-traits - async-traits
tokio-test: tokio-test: []
- default
# - template: ci/azure-cargo-check.yml # - template: ci/azure-cargo-check.yml
# parameters: # parameters:
+14
View File
@@ -34,12 +34,26 @@ jobs:
- template: azure-patch-crates.yml - template: azure-patch-crates.yml
- ${{ each crate in parameters.crates }}: - ${{ each crate in parameters.crates }}:
# Run with default crate features
- script: cargo test --tests
env:
LOOM_MAX_DURATION: 10
CI: 'True'
displayName: cargo test --tests
workingDirectory: $(Build.SourcesDirectory)/${{ crate.key }}
- script: cargo test --examples
displayName: cargo test --examples
workingDirectory: $(Build.SourcesDirectory)/${{ crate.key }}
# Run with each specified feature
- ${{ each feature in crate.value }}: - ${{ each feature in crate.value }}:
- script: cargo test --tests --no-default-features --features ${{ feature }} - script: cargo test --tests --no-default-features --features ${{ feature }}
env: env:
LOOM_MAX_DURATION: 10 LOOM_MAX_DURATION: 10
CI: 'True' CI: 'True'
displayName: cargo test --tests --features ${{ feature }} displayName: cargo test --tests --features ${{ feature }}
workingDirectory: $(Build.SourcesDirectory)/${{ crate.key }}
- script: cargo test --examples --no-default-features --features ${{ feature }} - script: cargo test --examples --no-default-features --features ${{ feature }}
displayName: cargo test --examples --features ${{ feature }} displayName: cargo test --examples --features ${{ feature }}
workingDirectory: $(Build.SourcesDirectory)/${{ crate.key }}