Run cargo-tarpaulin on nightly Rust

See README of tarpaulin: https://github.com/xd009642/tarpaulin
This commit is contained in:
Robin Stocker 2018-10-19 08:58:55 +11:00
parent 8fe21961fb
commit a605177015

View File

@ -7,6 +7,8 @@ matrix:
include:
- rust: 1.23.0
- rust: stable
- rust: beta
- rust: nightly
addons:
apt:
packages:
@ -15,8 +17,6 @@ matrix:
install:
# For test coverage. In install step so that it can use cache.
- cargo tarpaulin --version || RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
- rust: beta
- rust: nightly
allow_failures:
- rust: nightly
@ -29,7 +29,7 @@ script:
- 'if [[ "$TRAVIS_RUST_VERSION" = nightly ]]; then cargo bench --no-run; fi'
after_success: |
if [[ "$TRAVIS_RUST_VERSION" = stable ]]; then
if [[ "$TRAVIS_RUST_VERSION" = nightly ]]; then
# Calculate test coverage
cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash)