2021-05-13 11:34:55 +00:00
|
|
|
# Starter pipeline
|
|
|
|
# Start with a minimal pipeline that you can customize to build and deploy your code.
|
|
|
|
# Add steps that build, run tests, deploy, and more:
|
|
|
|
# https://aka.ms/yaml
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
- master
|
|
|
|
|
|
|
|
pool:
|
2021-05-13 11:36:35 +00:00
|
|
|
vmImage: 'ubuntu-16.04'
|
2021-05-13 11:34:55 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- script: |
|
2021-05-13 11:36:35 +00:00
|
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
2021-05-13 11:34:55 +00:00
|
|
|
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
|
|
|
|
displayName: Install rust
|
|
|
|
- script: cargo build --all
|
|
|
|
displayName: Cargo build
|
|
|
|
- script: cargo test --all
|
|
|
|
displayName: Cargo test
|