Skip to content

Commit bddb050

Browse files
authored
Merge pull request #18 from jturner314/fix-coverage
Fix coverage testing in CI
2 parents e74c22f + a4647ab commit bddb050

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ rust:
1414
matrix:
1515
allow_failures:
1616
- rust: nightly
17+
before_cache: |
18+
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
19+
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
20+
fi
1721
script:
1822
- cargo clean
1923
- cargo build
2024
- cargo test
2125
after_success: |
22-
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
23-
bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
26+
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
2427
cargo tarpaulin --out Xml
2528
bash <(curl -s https://codecov.io/bash)
2629
fi

0 commit comments

Comments
 (0)