Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
parent
5d3aa1bb35
commit
687465f25e
1 changed files with 2 additions and 27 deletions
|
@ -6,39 +6,14 @@
|
||||||
trigger:
|
trigger:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
windows-stable:
|
|
||||||
imageName: 'vs2017-win2016'
|
|
||||||
rustup_toolchain: stable
|
|
||||||
mac-stable:
|
|
||||||
imageName: 'macos-10.13'
|
|
||||||
rustup_toolchain: stable
|
|
||||||
linux-stable:
|
|
||||||
imageName: 'ubuntu-16.04'
|
|
||||||
rustup_toolchain: stable
|
|
||||||
linux-beta:
|
|
||||||
imageName: 'ubuntu-16.04'
|
|
||||||
rustup_toolchain: beta
|
|
||||||
linux-nightly:
|
|
||||||
imageName: 'ubuntu-16.04'
|
|
||||||
rustup_toolchain: nightly
|
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: $(imageName)
|
vmImage: 'ubuntu-16.04'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
|
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||||
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
|
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
|
||||||
displayName: Install rust
|
displayName: Install rust
|
||||||
condition: ne( variables['Agent.OS'], 'Windows_NT' )
|
|
||||||
- script: |
|
|
||||||
curl -sSf -o rustup-init.exe https://win.rustup.rs
|
|
||||||
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
|
|
||||||
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
|
|
||||||
displayName: Windows install rust
|
|
||||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
|
||||||
- script: cargo build --all
|
- script: cargo build --all
|
||||||
displayName: Cargo build
|
displayName: Cargo build
|
||||||
- script: cargo test --all
|
- script: cargo test --all
|
||||||
|
|
Loading…
Reference in a new issue