mirror of
https://github.com/georust/netcdf.git
synced 2025-12-08 19:25:14 +00:00
ignore coverage in the tests
now runs coverage runs on the stable branch
This commit is contained in:
parent
081687f820
commit
b554855723
13
.travis.yml
13
.travis.yml
@ -12,7 +12,7 @@ rust:
|
||||
sudo: false
|
||||
|
||||
matrix:
|
||||
allow_failure:
|
||||
allow_failures:
|
||||
- rust: nightly
|
||||
|
||||
addons:
|
||||
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
2
codecov.yml
Normal file
2
codecov.yml
Normal file
@ -0,0 +1,2 @@
|
||||
ignore:
|
||||
- "tests"
|
||||
Loading…
x
Reference in New Issue
Block a user