Skip to content

Commit

Permalink
create coveralls stats of the nightly build
Browse files Browse the repository at this point in the history
  • Loading branch information
flosse committed Feb 4, 2017
1 parent 97f71b7 commit 392bc77
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .travis.yml
@@ -1,4 +1,3 @@
sudo: false
language: rust
cache: cargo

Expand All @@ -12,7 +11,6 @@ addons:
- binutils-dev # optional: only required for the --verify flag of coveralls

rust:
- beta
- nightly

matrix:
Expand All @@ -32,9 +30,20 @@ script:
travis-cargo test -- $FEATURES &&
travis-cargo --only stable doc -- $FEATURES
## Currently travis-coveralls seems to be broken:
## https://github.com/huonw/travis-cargo/issues/58
## The following does not work:
# after_success: |
# [ $TRAVIS_RUST_VERSION = nightly ] &&
# travis-cargo coveralls --no-sudo --verify
#
## Use this workaround:
after_success: |
[ $TRAVIS_RUST_VERSION = stable ] &&
travis-cargo coveralls --no-sudo --verify
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/openfairdb-*
env:
global:
Expand Down

0 comments on commit 392bc77

Please sign in to comment.