Skip to content

Commit

Permalink
Merge pull request #494 from pyfisch/traviskcov
Browse files Browse the repository at this point in the history
chore(travis): Enable test coverage generation
  • Loading branch information
seanmonstar committed May 6, 2015
2 parents 0b6db39 + f270b1d commit 37dbf5a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ matrix:
include:
- rust: nightly
env: FEATURES="--features nightly"
sudo: false
- rust: nightly
env: FEATURES="--features nightly" BENCH=true
sudo: false
- rust: beta

sudo: false
sudo: true

cache:
directories:
Expand All @@ -17,6 +18,12 @@ cache:
script: ./.travis.sh

after_success: |
[ $TRAVIS_RUST_VERSION = beta ] &&
sudo apt-get install libcurl4-openssl-dev libelf-dev libdw-dev &&
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make &&
sudo make install && cd ../.. &&
kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/hyper-*
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_RUST_VERSION = beta ] &&
Expand Down

0 comments on commit 37dbf5a

Please sign in to comment.