try caching $HOME/.cargo

try to see if we can avoid building cargo-tarpaulin every time
master
Paul Woolcock 6 years ago
parent 5df4f8873c
commit 67ab7ee59a
  1. 5
      .travis.yml

@ -5,6 +5,9 @@ addons:
apt:
packages:
- libssl-dev
cache:
directories:
- $HOME/.cargo
env:
- ELEFREN_FEATURES="--features toml"
- ELEFREN_FEATURES="--features all"
@ -25,7 +28,9 @@ script:
- cargo test $ELEFREN_FEATURES
after_success: |
if [[ "$TRAVIS_RUST_VERSION" == stable ]] 2> /dev/null && [ -z "$ELEFREN_FEATURES" ] 2>/dev/null && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
if [[ -z "$(which cargo-tarpaulin)" ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
fi
cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID --features toml
fi
matrix:

Loading…
Cancel
Save