Skip to content

Commit

Permalink
update codecov script in travis-ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldmaida authored Oct 31, 2017
1 parent 3604aca commit a0af2e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ addons:
- cmake
- gcc
- binutils-dev
- libiberty-dev

after_success: |
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
Expand All @@ -34,9 +35,9 @@ after_success: |
cd build &&
cmake .. &&
make &&
sudo make install &&
make install DESTDIR=../../kcov-build &&
cd ../.. &&
rm -rf kcov-master &&
for file in target/debug/genevo-*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
for file in target/debug/genevo-*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/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"

0 comments on commit a0af2e3

Please sign in to comment.