-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from rylev/pipelines
Add Azure Pipelines
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
pr: ["master"] | ||
|
||
jobs: | ||
- job: | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
steps: | ||
- template: .ci/install-rust.yml | ||
parameters: | ||
rust_version: stable | ||
- bash: | | ||
export RUST_BACKTRACE=1 | ||
cargo check --all || exit | ||
cargo test --all || exit | ||
displayName: Run cargo check and test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. | ||
- script: | | ||
rustc -Vv | ||
cargo -V | ||
displayName: Query rust and cargo versions |