Skip to content

Commit 245bcd7

Browse files
committed
Add azure pipelines
1 parent 423f751 commit 245bcd7

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.azure-pipelines.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

.ci/install-rust.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

0 commit comments

Comments
 (0)