update travis config

This commit is contained in:
Nikolay Kim 2019-11-11 02:48:44 +06:00
parent 5a4ce470f9
commit daaae9d2f0
1 changed files with 5 additions and 6 deletions

View File

@ -10,10 +10,9 @@ matrix:
include:
- rust: stable
- rust: beta
- rust: 1.37.0
- rust: nightly-2019-06-15
- rust: nightly-2019-11-07
allow_failures:
- rust: nightly-2019-06-15
- rust: nightly-2019-11-07
env:
global:
@ -26,7 +25,7 @@ before_install:
- sudo apt-get install -y openssl libssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev
before_cache: |
if [[ "$TRAVIS_RUST_VERSION" == "nightly-2019-06-15" ]]; then
if [[ "$TRAVIS_RUST_VERSION" == "nightly-2019-11-07" ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install --version 0.6.11 cargo-tarpaulin
fi
@ -36,14 +35,14 @@ before_script:
script:
- |
if [[ "$TRAVIS_RUST_VERSION" != "nightly-2019-06-15" ]]; then
if [[ "$TRAVIS_RUST_VERSION" != "nightly-2019-11-07" ]]; then
cargo clean
cargo test --all --all-features -- --nocapture
fi
after_success:
- |
if [[ "$TRAVIS_RUST_VERSION" == "nightly-2019-06-15" ]]; then
if [[ "$TRAVIS_RUST_VERSION" == "nightly-2019-11-07" ]]; then
taskset -c 0 cargo tarpaulin --all --all-features --out Xml
echo "Uploaded code coverage"
bash <(curl -s https://codecov.io/bash)