Skip to content

Commit

Permalink
Merge branch 'v2-dev' into v2-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturKovacs committed Nov 15, 2019
2 parents 16f0ee1 + fd597fc commit ecf521f
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
trigger:
branches:
include: ['master', 'v2-dev']
tags:
include: ['*']

jobs:
- job: cargo_test
strategy:
matrix:
Linux:
vmImage: ubuntu-18.04
MacOS:
vmImage: macOS-10.14
Windows:
vmImage: windows-2019
pool:
vmImage: $(vmImage)
steps:
# Linux and macOS.
- 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: stable
displayName: "Install rust (*nix)"
condition: not(eq(variables['Agent.OS'], 'Windows_NT'))
# Windows.
- script: |
curl -sSf -o rustup-init.exe https://win.rustup.rs
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
set PATH=%PATH%;%USERPROFILE%\.cargo\bin
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
env:
RUSTUP_TOOLCHAIN: stable
displayName: "Install rust (windows)"
condition: eq(variables['Agent.OS'], 'Windows_NT')
- script: |
set -e
echo "Rust up version"
rustup -V
echo "rustup installed commponents list"
rustup component list --installed
echo "rustup show:"
rustup show
echo "rustc -Vv"
rustc -Vv
echo "cargo -V"
cargo -V
displayName: Query rustup, rust and cargo versions
- script: cargo test
displayName: cargo test

0 comments on commit ecf521f

Please sign in to comment.