Use cargo-tarpaulin instead of kcov/cargo-travis (#46)
This commit is contained in:
parent
32a1cabf6e
commit
f72c28aab7
1 changed files with 7 additions and 18 deletions
25
.travis.yml
25
.travis.yml
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue