ignore coverage in the tests

now runs coverage runs on the stable branch
This commit is contained in:
Magnus Ulimoen 2019-12-29 19:13:05 +01:00
parent 081687f820
commit b554855723
2 changed files with 9 additions and 6 deletions

View File

@ -12,7 +12,7 @@ rust:
sudo: false sudo: false
matrix: matrix:
allow_failure: allow_failures:
- rust: nightly - rust: nightly
addons: addons:
@ -36,7 +36,7 @@ before_script:
- export PATH=$HOME/.cargo/bin:$PATH - export PATH=$HOME/.cargo/bin:$PATH
- cargo install cargo-update || echo "cargo-update already installed" - cargo install cargo-update || echo "cargo-update already installed"
- cargo install cargo-travis || echo "cargo-travis 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 - cargo install-update -a # update outdated cached binaries
- rustup component add clippy - rustup component add clippy
@ -50,11 +50,12 @@ script:
cargo doc --all --verbose && cargo doc --all --verbose &&
cargo clippy -- --warn clippy::pedantic cargo clippy -- --warn clippy::pedantic
after_success: after_success: |
- | if [[ "$TRAVIS_RUST_VERSION" == stable ]] ; then
cargo +nightly tarpaulin --verbose --out Xml && cargo tarpaulin --verbose --out Xml --ignore-tests &&
bash <(curl -s https://codecov.io/bash) && bash <(curl -s https://codecov.io/bash) &&
cargo +nightly coveralls --verbose cargo coveralls --verbose --exclude-pattern="tests/"
fi
env: env:
global: global:

2
codecov.yml Normal file
View File

@ -0,0 +1,2 @@
ignore:
- "tests"