summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Petkov <ivanppetkov@gmail.com>2019-07-03 08:49:05 -0700
committerGitHub <noreply@github.com>2019-07-03 08:49:05 -0700
commit722eb257be0548911f5047d6b09a2bcf196deec9 (patch)
tree6b3598a5f30667d4769a4e18b1df0447202c8512
parentceed29586b446f87cce381d7d1e81bd01421f115 (diff)
ci: scope each tests/examples invocation to a specific crate (#1238)
-rw-r--r--azure-pipelines.yml29
-rw-r--r--ci/azure-test-stable.yml14
2 files changed, 24 insertions, 19 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index f59e82a5..9b9d3b18 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -31,14 +31,12 @@ jobs:
rust: $(nightly)
crates:
# - tokio-fs
- tokio-reactor:
- - default
+ tokio-reactor: []
# - tokio-signal
tokio-tcp:
- - default
+ - incoming
# - tokio-tls
- tokio-udp:
- - default
+ tokio-udp: []
# - tokio-uds
# Test crates that are NOT platform specific
@@ -49,24 +47,17 @@ jobs:
rust: $(nightly)
crates:
# - tokio-buf
- tokio-codec:
- - default
- tokio-current-thread:
- - default
- tokio-executor:
- - default
- tokio-io:
- - default
+ tokio-codec: []
+ tokio-current-thread: []
+ tokio-executor: []
+ tokio-io: []
tokio-sync:
- - default
- tokio-macros:
- - default
+ - async-traits
+ tokio-macros: []
# - tokio-threadpool
tokio-timer:
- - default
- async-traits
- tokio-test:
- - default
+ tokio-test: []
# - template: ci/azure-cargo-check.yml
# parameters:
diff --git a/ci/azure-test-stable.yml b/ci/azure-test-stable.yml
index a52a5e44..996d202b 100644
--- a/ci/azure-test-stable.yml
+++ b/ci/azure-test-stable.yml
@@ -34,12 +34,26 @@ jobs:
- template: azure-patch-crates.yml
- ${{ 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 }}:
- script: cargo test --tests --no-default-features --features ${{ feature }}
env:
LOOM_MAX_DURATION: 10
CI: 'True'
displayName: cargo test --tests --features ${{ feature }}
+ workingDirectory: $(Build.SourcesDirectory)/${{ crate.key }}
- script: cargo test --examples --no-default-features --features ${{ feature }}
displayName: cargo test --examples --features ${{ feature }}
+ workingDirectory: $(Build.SourcesDirectory)/${{ crate.key }}