-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathazure-pipelines.yml
45 lines (42 loc) · 1.14 KB
/
azure-pipelines.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
# Ref: https://aka.ms/yaml
resources:
containers:
- container: debian-jessie
image: onuras/docs.rs:debian-jessie
- container: debian-stretch
image: onuras/docs.rs:debian-stretch
jobs:
- job: test
pool:
vmImage: 'Ubuntu 16.04'
strategy:
matrix:
jessie:
containerResource: debian-jessie
stretch:
containerResource: debian-stretch
container: $[ variables['containerResource'] ]
steps:
- script: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
displayName: 'Install rustc'
- script: |
export PATH=$PATH:$HOME/.cargo/bin
rustc --version --verbose
cargo --version --verbose
displayName: Versions
- script: |
export PATH=$PATH:$HOME/.cargo/bin
cargo check --verbose
displayName: Build
- script: |
export PATH=$PATH:$HOME/.cargo/bin
cargo test --verbose
displayName: Test
- script: |
export PATH=$PATH:$HOME/.cargo/bin
printenv
displayName: Dump (baseline)
- script: |
export PATH=$PATH:$HOME/.cargo/bin
cargo run --verbose
displayName: Dump