Skip to content

Commit

Permalink
Use kcov again
Browse files Browse the repository at this point in the history
Because tarpaulin currently doesn't rapport accurate coverage
  • Loading branch information
exul committed May 9, 2018
1 parent f0b2799 commit 4f04676
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,29 @@ cache:
- apt
- cargo

# Dependencies of kcov, used by coverage
addons:
apt:
packages:
- libssl-dev
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
sources:
- kalakris-cmake

rust:
- nightly

before_script:
- export PATH=$HOME/.cargo/bin:$PATH
- cargo install cargo-travis || echo "cargo-travis already installed"

script:
- cargo clean
- cargo build
- cargo test
- |
cargo build &&
cargo test
after_success: |
cargo install --git https://github.com/xd009642/tarpaulin --force --branch develop cargo-tarpaulin
cargo tarpaulin --ignore-tests --exclude-files bin/* --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
after_success:
- cargo coveralls --exclude-pattern src/bin/,target/,tests/

0 comments on commit 4f04676

Please sign in to comment.