Skip to content

Commit b554855

Browse files
committed
ignore coverage in the tests
now runs coverage runs on the stable branch
1 parent 081687f commit b554855

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.travis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rust:
1212
sudo: false
1313

1414
matrix:
15-
allow_failure:
15+
allow_failures:
1616
- rust: nightly
1717

1818
addons:
@@ -36,7 +36,7 @@ before_script:
3636
- export PATH=$HOME/.cargo/bin:$PATH
3737
- cargo install cargo-update || echo "cargo-update already installed"
3838
- cargo install cargo-travis || echo "cargo-travis already installed"
39-
- RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo +nightly install cargo-tarpaulin || true
39+
- RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo +stable install cargo-tarpaulin || true
4040
- cargo install-update -a # update outdated cached binaries
4141
- rustup component add clippy
4242

@@ -50,11 +50,12 @@ script:
5050
cargo doc --all --verbose &&
5151
cargo clippy -- --warn clippy::pedantic
5252
53-
after_success:
54-
- |
55-
cargo +nightly tarpaulin --verbose --out Xml &&
53+
after_success: |
54+
if [[ "$TRAVIS_RUST_VERSION" == stable ]] ; then
55+
cargo tarpaulin --verbose --out Xml --ignore-tests &&
5656
bash <(curl -s https://codecov.io/bash) &&
57-
cargo +nightly coveralls --verbose
57+
cargo coveralls --verbose --exclude-pattern="tests/"
58+
fi
5859
5960
env:
6061
global:

codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignore:
2+
- "tests"

0 commit comments

Comments
 (0)