Skip to content

Commit bfba013

Browse files
authored
Update azure-pipelines.yml
1 parent cecbbe3 commit bfba013

File tree

1 file changed

+28
-14
lines changed

1 file changed

+28
-14
lines changed

azure-pipelines.yml

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
1-
# Starter pipeline
2-
# Start with a minimal pipeline that you can customize to build and deploy your code.
3-
# Add steps that build, run tests, deploy, and more:
4-
# https://aka.ms/yaml
1+
resources:
2+
containers:
3+
- container: debian-jessie
4+
image: onuras/docs.rs:debian-jessie
5+
- container: debian-stretch
6+
image: onuras/docs.rs:debian-stretch
57

6-
pool:
7-
vmImage: 'Ubuntu 16.04'
88

9-
steps:
10-
- script: echo Hello, world!
11-
displayName: 'Run a one-line script'
12-
13-
- script: |
14-
echo Add other tasks to build, test, and deploy your project.
15-
echo See https://aka.ms/yaml
16-
displayName: 'Run a multi-line script'
9+
jobs:
10+
- job: test
11+
pool:
12+
vmImage: 'Ubuntu 16.04'
13+
strategy:
14+
matrix:
15+
jessie:
16+
containerResource: debian-jessie
17+
stretch:
18+
containerResource: debian-stretch
19+
container: $[ variables['containerResource'] ]
20+
steps:
21+
- script: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
22+
displayName: 'Install rustc'
23+
- script: |
24+
export PATH=$PATH:$HOME/.cargo/bin
25+
cargo build --verbose
26+
displayName: 'Build docs.rs'
27+
- script: |
28+
export PATH=$PATH:$HOME/.cargo/bin
29+
cargo test --verbose -- --test-threads=1
30+
displayName: 'Test docs.rs'

0 commit comments

Comments
 (0)