summaryrefslogtreecommitdiffstats
path: root/ci/azure-loom.yml
blob: 001aedec263bbdc22712dd2a0c611edda3318fa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
jobs:
- job: ${{ parameters.name }}
  displayName: Loom tests
  strategy:
    matrix:
      rest:
        scope: --skip loom_pool
      pool_group_a:
        scope: loom_pool::group_a
      pool_group_b:
        scope: loom_pool::group_b
      pool_group_c:
        scope: loom_pool::group_c
      pool_group_d:
        scope: loom_pool::group_d
  pool:
    vmImage: ubuntu-16.04

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

  - script: RUSTFLAGS="--cfg loom" cargo test --lib --release --features "full" -- --nocapture $(scope)
    env:
      LOOM_MAX_PREEMPTIONS: 2
      CI: 'True'
    displayName: $(scope)
    workingDirectory: $(Build.SourcesDirectory)/tokio