Skip to content

Commit 1fe74ed

Browse files
author
Zibi Braniecki
committed
Update .travis.yml to match latest tarpaulin snippet
1 parent 1ace49e commit 1fe74ed

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.travis.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,24 @@ addons:
77
- libssl-dev
88
cache: cargo
99
rust:
10-
- nightly
11-
- beta
1210
- stable
11+
- beta
12+
- nightly
13+
matrix:
14+
allow_failures:
15+
- rust: nightly
16+
17+
before_cache: |
18+
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
19+
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin -f
20+
fi
21+
1322
script:
1423
- cargo clean
1524
- cargo build
1625
- cargo test
1726

1827
after_success: |
19-
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
20-
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
28+
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
2129
cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
2230
fi

0 commit comments

Comments
 (0)