Skip to content

Commit

Permalink
Merge pull request #46 from rylev/pipelines
Browse files Browse the repository at this point in the history
Add Azure Pipelines
  • Loading branch information
alexcrichton authored Mar 25, 2019
2 parents 423f751 + 9de22e3 commit 47142b6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .azure-pipelines.yml
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
14 changes: 14 additions & 0 deletions .ci/install-rust.yml
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

0 comments on commit 47142b6

Please sign in to comment.