Skip to content

Commit

Permalink
Update .travis.yml to match latest tarpaulin snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
Zibi Braniecki committed Jan 5, 2019
1 parent 1ace49e commit 1fe74ed
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,24 @@ addons:
- libssl-dev
cache: cargo
rust:
- nightly
- beta
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly

before_cache: |
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin -f
fi
script:
- cargo clean
- cargo build
- cargo test

after_success: |
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
fi

0 comments on commit 1fe74ed

Please sign in to comment.