Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

Commit

Permalink
update tarpaulin use to accomidate xd009642/tarpaulin#150
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Oct 2, 2018
1 parent 7824841 commit 2966ea4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)
Expand Down

0 comments on commit 2966ea4

Please sign in to comment.