File tree 2 files changed +33
-0
lines changed
2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ pr : ["master"]
2
+
3
+ jobs :
4
+ - job :
5
+ pool :
6
+ vmImage : ' ubuntu-16.04'
7
+ steps :
8
+ - template : .ci/install-rust.yml
9
+ parameters :
10
+ rust_version : stable
11
+ - bash : |
12
+ export RUST_BACKTRACE=1
13
+ cargo check --all || exit
14
+ cargo test --all || exit
15
+ displayName: Run cargo check and test
Original file line number Diff line number Diff line change
1
+ steps :
2
+ - script : |
3
+ set -e
4
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
5
+ echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
6
+ env:
7
+ RUSTUP_TOOLCHAIN: ${{parameters.rust_version}}
8
+ displayName: Install Rust
9
+
10
+ # All platforms.
11
+ - script : |
12
+ rustc -Vv
13
+ cargo -V
14
+ displayName: Query rust and cargo versions
15
+
16
+ - script : |
17
+ rustup target add wasm32-unknown-unknown
18
+ displayName: Install wasm target
You can’t perform that action at this time.
0 commit comments