-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines.yml
42 lines (39 loc) · 1.12 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
33
34
35
36
37
38
39
40
41
42
trigger:
branches:
include:
- '*'
tags:
include:
- '*'
resources:
containers:
- container: rust
image: rust:latest
- container: tarpaulin
image: xd009642/tarpaulin:latest-nightly
options: --security-opt seccomp=unconfined
jobs:
- job: Test
pool:
vmImage: 'ubuntu-16.04'
container: rust
steps:
- script: |
cargo test
displayName: Run test
- job: Coverage
pool:
vmImage: 'ubuntu-16.04'
container: tarpaulin
steps:
- script: |
cargo tarpaulin -v --out Xml
curl -s https://codecov.io/bash -o .codecov && chmod +x .codecov
./.codecov -B "${BUILD_SOURCEBRANCHNAME:-}" \
-C "${BUILD_SOURCEVERSION:-}" \
-P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}" \
-b "${BUILD_BUILDID:-}" \
-K -n "report name"
displayName: Run tarpaulin
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)