check if util coverage is working

This commit is contained in:
debris 2016-01-31 18:46:37 +01:00
parent a5ff52541e
commit 691c4a740f

View File

@ -8,6 +8,8 @@ matrix:
cache: cache:
apt: true apt: true
directories: directories:
- target/debug/deps
- target/debug/build
- target/release/deps - target/release/deps
- target/release/build - target/release/build
addons: addons:
@ -30,8 +32,10 @@ script:
after_success: | after_success: |
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && 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 && make install DESTDIR=../tmp && cd ../.. && tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make && make install DESTDIR=../tmp && cd ../.. &&
ls target/release && cargo test --no-run -p ethcore-util &&
./kcov-master/tmp/usr/local/bin/kcov --coveralls-id=${COVERALLS_TOKEN} --exclude-pattern=/.cargo --include-pattern=ethcore/src target/kcov target/release/deps/ethcore-* && cargo test --no-run &&
kcov --exclude-pattern /.cargo,/root/.multirust --include-pattern util/src target/kcov target/debug/deps/ethcore_util-* &&
kcov --coveralls-id=${COVERALLS_TOKEN} --exclude-pattern /.cargo,/root/.multirust --include-pattern parity target/kcov target/debug/parity-*
[ $TRAVIS_BRANCH = master ] && [ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] && [ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_RUST_VERSION = nightly ] && [ $TRAVIS_RUST_VERSION = nightly ] &&