try to get coverage from release build

This commit is contained in:
debris 2016-01-28 21:00:43 +01:00
parent 3fa39bfcce
commit 861bd35150

View File

@ -8,8 +8,8 @@ matrix:
cache: cache:
apt: true apt: true
directories: directories:
- target/debug/deps - target/release/deps
- target/debug/build - target/release/build
addons: addons:
apt: apt:
packages: packages:
@ -21,14 +21,14 @@ before_script: |
sudo apt-get update && sudo apt-get update &&
sudo apt-get install -y --force-yes librocksdb sudo apt-get install -y --force-yes librocksdb
script: script:
- cargo build --verbose $FEATURES - cargo build --release --verbose $FEATURES
- cargo test --verbose $FEATURES - cargo test --release --verbose $FEATURES
- cargo bench --no-run - cargo bench --release --no-run
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/debug && ls target/release &&
./kcov-master/tmp/usr/local/bin/kcov --coveralls-id=${COVERALLS_TOKEN} --exclude-pattern=/.cargo target/kcov target/debug/ethcore* && ./kcov-master/tmp/usr/local/bin/kcov --coveralls-id=${COVERALLS_TOKEN} --exclude-pattern=/.cargo target/kcov target/release/ethcore* &&
[ $TRAVIS_BRANCH = master ] && [ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] && [ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_RUST_VERSION = nightly ] && [ $TRAVIS_RUST_VERSION = nightly ] &&