Try to cache travis-cargo to reduce codecov install time which is 95% of test time
@@ -7,6 +7,7 @@ cache:
before_cache:
- rm -rf /home/travis/.cargo/registry
+ - RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
include_base: &BASE
addons:
apt:
@@ -157,7 +158,6 @@ env:
after_success: |
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
- RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
cargo tarpaulin --features "llvm${LLVM_VERSION_DASH}" --ignore-tests --out Xml
bash <(curl -s https://codecov.io/bash)
fi
