Skip to content

Commit ba22119

Browse files
committed
Run coverage with Docker
1 parent b424389 commit ba22119

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.travis.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,13 @@ jobs:
5050
- touch ./src/lib.rs && cargo clippy -- -D warnings
5151
- stage: coverage
5252
sudo: required
53-
addons:
54-
apt:
55-
packages:
56-
- libssl-dev
57-
rust: nightly
58-
env: CACHE_NAME=coverage
53+
dist: trusty
54+
cache: false
55+
services:
56+
- docker
5957
script:
60-
- RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin || true
61-
- cargo tarpaulin --out Xml
58+
- docker run --security-opt seccomp=unconfined -v "$PWD:/volume" xd009642/tarpaulin:latest sh -c "cargo tarpaulin --out Xml"
6259
- bash <(curl -s https://codecov.io/bash)
63-
- cargo clean -p msql-srv # ensure we don't cache build for coverage
6460
stages:
6561
- check
6662
- test

0 commit comments

Comments
 (0)