Use cargo-tarpaulin instead of kcov/cargo-travis (#46)

This commit is contained in:
Jon Gjengset 2017-10-04 19:47:31 -04:00 committed by Matt McCoy
parent 32a1cabf6e
commit f72c28aab7

View file

@ -4,14 +4,7 @@ language: rust
addons: addons:
apt: apt:
packages: packages:
- libcurl4-openssl-dev - libssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
sources:
- kalakris-cmake
rust: rust:
- stable - stable
@ -22,16 +15,12 @@ matrix:
allow_failures: allow_failures:
- rust: nightly - rust: nightly
before_install:
- |
cargo install cargo-travis &&
export PATH=$HOME/.cargo/bin:$PATH
script: script:
- | - cargo build
cargo build && - cargo test
cargo test &&
cargo bench
after_success: after_success:
- "if [ $TRAVIS_RUST_VERSION = stable ]; then cargo coveralls; fi" - if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then
bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh);
cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID;
fi