save lcov remove output and move to root so coveralls-lcov can find source files

This commit is contained in:
Thomas Fussell 2017-04-20 00:56:18 -04:00
parent c45d1e63e7
commit 8d1f044793

View File

@ -35,8 +35,9 @@ after_success:
- |
if [[ "${COVERAGE}" == "ON" ]]; then
lcov --directory source/CMakeFiles/xlnt.dir --capture --output-file coverage.info --base-directory ../source --no-external --gcov-tool /usr/bin/gcov-6
lcov --remove coverage.info source/detail/miniz.cpp
lcov --output-file coverage.info --remove coverage.info source/detail/miniz.cpp
i=$(dirname $(pwd))
sed -i "s|$i/||" coverage.info
coveralls-lcov coverage.info
cd ..
coveralls-lcov build/coverage.info
fi