Skip to content

Commit

Permalink
Update travis script
Browse files Browse the repository at this point in the history
  • Loading branch information
Zibi Braniecki committed Feb 20, 2019
1 parent b2de068 commit 38c6a90
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ rust:
- beta
- stable

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

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

0 comments on commit 38c6a90

Please sign in to comment.