From a0af2e329ef41ce9b87560e5e00d60e315329f81 Mon Sep 17 00:00:00 2001 From: Harald Maida Date: Tue, 31 Oct 2017 06:59:53 +0100 Subject: [PATCH] update codecov script in travis-ci build --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a33c825..9e1288a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,6 +25,7 @@ addons: - cmake - gcc - binutils-dev + - libiberty-dev after_success: | wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && @@ -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"