Skip to content

Commit 6a7efa2

Browse files
authored
Merge pull request #77 from mgeisler/circleci-machine-image
circleci: run cargo tarpaulin in a machine image
2 parents f849113 + 15103bf commit 6a7efa2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.circleci/config.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
version: 2
22
jobs:
33
build:
4-
docker:
5-
- image: xd009642/tarpaulin
4+
machine: true
65
steps:
76
- checkout
7+
- run:
8+
name: Pull xd009642/tarpaulin
9+
command: docker pull xd009642/tarpaulin
810
- run:
911
name: Generate coverage report
10-
command: cargo tarpaulin --out Xml
12+
command: >-
13+
docker run --security-opt seccomp=unconfined
14+
-v $PWD:/volume xd009642/tarpaulin
15+
cargo tarpaulin --out Xml
1116
- run:
1217
name: Upload to codecov.io
1318
command: bash <(curl -s https://codecov.io/bash) -Z -f cobertura.xml

0 commit comments

Comments
 (0)