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"