From 4246d7e6436a8705fa1c3bca1818caf22fb2048e Mon Sep 17 00:00:00 2001 From: Alex Lyon Date: Tue, 23 Apr 2019 18:54:16 -0700 Subject: [PATCH] Stop using the shell script as it's no longer recommended --- .travis.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b652cba..a81c96e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,13 +15,19 @@ branches: only: - master +cache: cargo + +before_cache: | + if [[ "$TRAVIS_RUST_VERSION" = nightly ]]; then + RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin -f + fi + script: - cargo build --verbose - cargo test --verbose after_script: | - if [ "$TRAVIS_OS_NAME" = linux -a "$TRAVIS_RUST_VERSION" = nightly ]; then - bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh) + if [[ "$TRAVIS_OS_NAME" = linux && "$TRAVIS_RUST_VERSION" = nightly ]]; then cargo tarpaulin --out Xml bash <(curl -s https://codecov.io/bash) fi