-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathvsts-ci.yml
31 lines (31 loc) · 882 Bytes
/
vsts-ci.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
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
cargo build
cargo test -- --test-threads=1
- job: macOS
pool:
vmImage: 'xcode9-macos10.13'
steps:
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
cargo build
cargo test -- --test-threads=1
- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- script: |
powershell -command "& {Invoke-WebRequest -OutFile rustup-init.exe https://win.rustup.rs/}"
rustup-init -yv --default-toolchain stable --default-host x86_64-pc-windows-msvc
set PATH=%PATH%;%USERPROFILE%\.cargo\bin
rustc -vV
cargo -vV
cargo build
cargo test -- --test-threads=1