mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00

- Move `tokio` into its own directory. - Remove `path` dependencies. - Run tests with once with crates.io dep and once with patched dep.
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
jobs:
|
|
- job: ${{ parameters.name }}
|
|
displayName: ${{ parameters.displayName }}
|
|
strategy:
|
|
matrix:
|
|
Linux:
|
|
vmImage: ubuntu-16.04
|
|
|
|
${{ if parameters.cross }}:
|
|
MacOS:
|
|
vmImage: macOS-10.13
|
|
Windows:
|
|
vmImage: vs2017-win2016
|
|
pool:
|
|
vmImage: $(vmImage)
|
|
|
|
steps:
|
|
- template: azure-install-rust.yml
|
|
parameters:
|
|
rust_version: stable
|
|
|
|
- ${{ each crate in parameters.crates }}:
|
|
- script: cargo test
|
|
env:
|
|
LOOM_MAX_DURATION: 10
|
|
CI: 'True'
|
|
displayName: cargo test -p ${{ crate }}
|
|
workingDirectory: $(Build.SourcesDirectory)/${{ crate }}
|
|
|
|
- script: |
|
|
set -e
|
|
cat ci/patch.toml >> Cargo.toml
|
|
echo "~~~~ Cargo.toml ~~~~"
|
|
cat Cargo.toml
|
|
echo "~~~~~~~~~~~~~~~~~~~~"
|
|
displayName: Patch Cargo.toml
|
|
|
|
- ${{ each crate in parameters.crates }}:
|
|
- script: cargo test
|
|
env:
|
|
LOOM_MAX_DURATION: 10
|
|
CI: 'True'
|
|
displayName: cargo test -p ${{ crate }} (PATCHED)
|
|
workingDirectory: $(Build.SourcesDirectory)/${{ crate }}
|