mirror of
https://github.com/encounter/object.git
synced 2026-03-30 11:32:22 -07:00
install tarpaulin via cargo, run it with the nightly compiler
This commit is contained in:
+6
-2
@@ -17,6 +17,11 @@ addons:
|
||||
packages:
|
||||
- libssl-dev
|
||||
|
||||
before_cache: |
|
||||
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
|
||||
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
|
||||
fi
|
||||
|
||||
script:
|
||||
- |
|
||||
cargo build &&
|
||||
@@ -27,7 +32,6 @@ script:
|
||||
fi
|
||||
|
||||
after_success:
|
||||
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then
|
||||
bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh);
|
||||
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
|
||||
cargo tarpaulin --no-count --ciserver travis-ci --coveralls $TRAVIS_JOB_ID;
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user