From 2966ea45b4c1eec1865475b6736e413d18851918 Mon Sep 17 00:00:00 2001 From: softprops Date: Tue, 2 Oct 2018 15:29:27 -0400 Subject: [PATCH] update tarpaulin use to accomidate https://github.com/xd009642/tarpaulin/issues/150 --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 86cd4af..535c7b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,8 +23,10 @@ addons: - libssl-dev install: | - if [[ "$TRAVIS_RUST_VERSION" == stable ]] && [[ $(cargo tarpaulin --version) != *0.6.2 ]]; then - `RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install --force --version 0.6.2 cargo-tarpaulin` + # https://github.com/xd009642/tarpaulin/issues/150 + rustup toolchain install nightly + if [[ "$TRAVIS_RUST_VERSION" == stable ]] && [[ $(cargo +nightly tarpaulin --version) != *0.6.2 ]]; then + `RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo +nightly install --force --version 0.6.2 cargo-tarpaulin` fi script: @@ -35,7 +37,7 @@ script: after_success: # report coverage to coveralls # see https://github.com/xd009642/tarpaulin for more information - - cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID || true + - cargo +nightly tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID || true # deploy on pushes to master branch # assumes aws credentials (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)