aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-10-23 20:45:25 +0200
committerHampusM <hampus@hampusmat.com>2022-10-23 20:45:25 +0200
commit5323c7d96faed4171bbd2d7bfe398159e5b3067c (patch)
treedce17fca72101b168344411de6c162846a6747a6
parent8f1ba53c2bc0db1eade9487ce7ca855eca05a85f (diff)
ci: add code test coverage job
-rw-r--r--.circleci/config.yml23
1 files changed, 21 insertions, 2 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 9637cdf..8947236 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -10,11 +10,30 @@ jobs:
- run: rustup install nightly
- run: rustup default nightly
- run:
- name: Run Tests
- command: cargo test --workspace --all-features
+ name: Run Tests
+ command: cargo test --workspace --all-features
+ coverage:
+ machine: true
+ steps:
+ - checkout
+ - run:
+ name: Coverage with docker
+ command: |
+ docker run \
+ --security-opt seccomp=unconfined \
+ -v "${PWD}:/volume" \
+ xd009642/tarpaulin:0.22.0-nightly \
+ cargo \
+ +nightly \
+ tarpaulin \
+ --workspace \
+ --all-features \
+ --ciserver circle-ci \
+ --coveralls $COVERALLS_REPO_TOKEN
workflows:
test:
jobs:
- test-all
+ - coverage