We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 423f751 + 9de22e3 commit 47142b6Copy full SHA for 47142b6
.azure-pipelines.yml
@@ -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
@@ -0,0 +1,14 @@
+steps:
+ - script: |
+ set -e
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
+ echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
+ env:
+ RUSTUP_TOOLCHAIN: ${{parameters.rust_version}}
+ displayName: Install Rust
+ # All platforms.
+ rustc -Vv
+ cargo -V
+ displayName: Query rust and cargo versions
0 commit comments