Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from mgeisler/circleci-machine-image
Run cargo tarpaulin in a machine image
- Loading branch information
Showing
1 changed file
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: xd009642/tarpaulin | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: | ||
name: Pull xd009642/tarpaulin | ||
command: docker pull xd009642/tarpaulin | ||
- run: | ||
name: Generate coverage report | ||
command: cargo tarpaulin --out Xml --all-features | ||
command: >- | ||
docker run --security-opt seccomp=unconfined | ||
-v $PWD:/volume xd009642/tarpaulin | ||
cargo tarpaulin --out Xml --all-features | ||
- run: | ||
name: Upload to codecov.io | ||
command: bash <(curl -s https://codecov.io/bash) -Z -f cobertura.xml |