-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
32 lines (30 loc) · 1 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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:
vmImage: 'ubuntu-latest'
jobs:
- job: Tests
container:
image: xd009642/tarpaulin:latest
options: --security-opt seccomp=unconfined
steps:
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
rustup update
rustup component add rustfmt
displayName: 'Install Rust'
- script: cargo fmt --all -- --check
displayName: Check formatting
- script: cargo test --all-features
displayName: 'Cargo Tests'
- script: cargo tarpaulin --all-features --out Xml
displayName: 'Code coverage'
- script: bash <(curl -s https://codecov.io/bash)
displayName: 'Upload coverage'
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)