only do cargo-tarpaulin on a single build

master
Paul Woolcock 6 years ago
parent 98718ac4b8
commit fa99b2b8ff
  1. 2
      .travis.yml

@ -22,7 +22,7 @@ script:
if [[ "$TRAVIS_RUST_VERSION" == "nightly"* ]]; then cargo fmt --all -- --check; fi
- cargo test $ELEFREN_FEATURES
after_success: |
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
if [[ "$TRAVIS_RUST_VERSION" == stable ]] 2> /dev/null && [ -z "$ELEFREN_FEATURES" ]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID --features toml
fi

Loading…
Cancel
Save