travis: Add code coverage on success

Update the code coverage of the project on codecov for easy viewing.

Also the gcov on travis uses a different version which cannot
find the directory of the given files, and it needs to be specified
in the -o flag. Hence now we loop over the list of files and
run them independently.
This commit is contained in:
AbdealiJK
2016-12-03 23:06:11 +05:30
committed by Tianqi Chen
parent 61a9b3a49e
commit 8eb69e0677
3 changed files with 8 additions and 2 deletions

View File

@@ -94,5 +94,5 @@ if [ ${TASK} == "cpp_test" ]; then
make -f dmlc-core/scripts/packages.mk gtest
echo "TEST_COVER=1" >> config.mk
echo "GTEST_PATH="${CACHE_PREFIX} >> config.mk
make check
make cover
fi