mirror of
https://gitee.com/openharmony/third_party_rust_rust-base64
synced 2024-12-04 03:11:15 +00:00
Run cargo-tarpaulin on nightly Rust
See README of tarpaulin: https://github.com/xd009642/tarpaulin
This commit is contained in:
parent
8fe21961fb
commit
a605177015
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user