Skip to content

Commit

Permalink
Merge pull request #48 from magnusuMET/test_coverage
Browse files Browse the repository at this point in the history
ignore coverage in the tests
  • Loading branch information
magnusuMET committed Dec 30, 2019
2 parents 081687f + b554855 commit fdbb569
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rust:
sudo: false

matrix:
allow_failure:
allow_failures:
- rust: nightly

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

Expand All @@ -50,11 +50,12 @@ script:
cargo doc --all --verbose &&
cargo clippy -- --warn clippy::pedantic
after_success:
- |
cargo +nightly tarpaulin --verbose --out Xml &&
after_success: |
if [[ "$TRAVIS_RUST_VERSION" == stable ]] ; then
cargo tarpaulin --verbose --out Xml --ignore-tests &&
bash <(curl -s https://codecov.io/bash) &&
cargo +nightly coveralls --verbose
cargo coveralls --verbose --exclude-pattern="tests/"
fi
env:
global:
Expand Down
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore:
- "tests"

0 comments on commit fdbb569

Please sign in to comment.