forked from tokio-rs/mio
/
azure-test-stable.yml
48 lines (40 loc) · 1.28 KB
/
azure-test-stable.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
parameters:
cmd: test
rust_version: stable
jobs:
- job: ${{ parameters.name }}
displayName: ${{ parameters.displayName }}
strategy:
matrix:
Linux:
vmImage: ubuntu-18.04
${{ if parameters.cross }}:
MacOS:
vmImage: macOS-10.15
Windows:
vmImage: vs2017-win2016
pool:
vmImage: $(vmImage)
variables:
RUST_BACKTRACE: full
steps:
- template: azure-install-rust.yml
parameters:
rust_version: ${{ parameters.rust_version }}
- ${{ if eq(parameters.cmd, 'test') }}:
- script: |
# Cargo-hack's dependency bitflags has a higher MSVR then us.
rustup install nightly
rustup run nightly cargo install cargo-hack
cargo hack check --feature-powerset
displayName: Check feature powerset
- script: cargo ${{ parameters.cmd }} --all-features
displayName: cargo ${{ parameters.cmd }} --all-features
env:
CI: "True"
- ${{ if eq(parameters.cmd, 'test') }}:
- script: cargo doc --no-deps
displayName: cargo doc --no-deps
- ${{ if parameters.benches }}:
- script: cargo check --benches
displayName: Check benchmarks