Skip to content

Commit eb76949

Browse files
authored
Add coverage check (#57)
* Add coverage check
1 parent 4a941d1 commit eb76949

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.circleci/config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ workflows:
66
jobs:
77
- build
88
- clippy
9+
- coverage
10+
911
jobs:
1012
build:
1113
docker:
@@ -41,3 +43,17 @@ jobs:
4143
- run:
4244
name: Run cargo clippy
4345
command: cargo clippy --all-features -- -Drust-2018-idioms -Dwarnings
46+
47+
coverage:
48+
machine: true
49+
steps:
50+
- checkout
51+
- run:
52+
name: Generate report
53+
command: >
54+
docker run --security-opt seccomp=unconfined -v $PWD:/volume
55+
xd009642/tarpaulin:latest-nightly cargo tarpaulin -v --ciserver circle-ci
56+
--out Lcov --all-features -- --test-threads 1
57+
- run:
58+
name: Upload
59+
command: bash <(curl -s https://codecov.io/bash) -Z -f

0 commit comments

Comments
 (0)