Skip to content

Commit

Permalink
Increase a number of the tests for coverage check [ECR-4407] (exonum#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Anyshchenko committed May 25, 2020
1 parent fbc3d17 commit 0a6dc36
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ addons:
- libelf-dev
- libiberty-dev
- libprotobuf-dev
- librocksdb6.7
- librocksdb6.8
- libsnappy-dev
- libsodium-dev
- libssl-dev
Expand Down Expand Up @@ -59,7 +59,7 @@ env:
- RUSTFLAGS="-D warnings"
- ROCKSDB_LIB_DIR=/usr/lib
- SNAPPY_LIB_DIR=/usr/lib/x86_64-linux-gnu
- SCCACHE_VERS=0.2.12
- SCCACHE_VERS=0.2.13
matrix:
- FEATURE=test

Expand Down Expand Up @@ -123,9 +123,12 @@ jobs:
rm -rf kcov-master
fi
script:
- cargo test --no-run
- cd $TRAVIS_BUILD_DIR
- for file in `find target/debug/ -maxdepth 1 -type f | egrep "*-([a-zA-Z0-9]{16}$)"`; do mkdir -p "target/cov/$(basename $file)"; $HOME/.kcov/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done
- cargo test --all-targets --no-run
- |
for file in `find target/debug/ -maxdepth 2 -path target/debug/deps -prune -o -type f | egrep "*-([a-zA-Z0-9]{16}$)"`;
do mkdir -p "target/cov/$(basename $file)";
$HOME/.kcov/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file";
done
- bash <(curl -s https://codecov.io/bash)
- echo "Uploaded code coverage"

Expand Down

0 comments on commit 0a6dc36

Please sign in to comment.