Skip to content

Commit

Permalink
use tarpaulin from cache
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Mar 3, 2019
1 parent 6df85e3 commit a8f3dec
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,9 @@ before_script:
- export PATH=$PATH:~/.cargo/bin

script:
- |
if [[ "$TRAVIS_RUST_VERSION" != "nightly-2019-03-02" ]]; then
cargo clean
cargo check
cargo test -- --nocapture
fi
- |
if [[ "$TRAVIS_RUST_VERSION" == "nightly-2019-03-02" ]]; then
RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install -f cargo-tarpaulin
RUST_BACKTRACE=1 cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash)
echo "Uploaded code coverage"
fi
- cargo clean
- cargo check
- cargo test -- --nocapture

# Upload docs
after_success:
Expand All @@ -58,3 +48,9 @@ after_success:
./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -r https://"$GH_TOKEN"@github.com/"$TRAVIS_REPO_SLUG.git" target/doc &&
echo "Uploaded documentation"
fi
- |
if [[ "$TRAVIS_RUST_VERSION" == "nightly-2019-03-02" ]]; then
cargo tarpaulin --features="ssl" --out Xml
bash <(curl -s https://codecov.io/bash)
echo "Uploaded code coverage"
fi

0 comments on commit a8f3dec

Please sign in to comment.