summaryrefslogtreecommitdiffstats
path: root/ci/azure-loom.yml
blob: c08b68ca1093bcb36891a1fcfd1bcd4136b618b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
jobs:
- job: ${{ parameters.name }}
  displayName: Loom tests
  pool:
    vmImage: ubuntu-16.04

  steps:
  - template: azure-install-rust.yml
    parameters:
      rust_version: ${{ parameters.rust }}

  - ${{ each crate in parameters.crates }}:
    - script: RUSTFLAGS="--cfg loom" cargo test --lib --release
      env:
        LOOM_MAX_PREEMPTIONS: 2
        CI: 'True'
      displayName: test ${{ crate }}
      workingDirectory: $(Build.SourcesDirectory)/${{ crate }}