Edit travis file

This commit is contained in:
Daniel Chappuis 2018-04-07 01:00:53 +02:00
parent 208c18497b
commit 269c12c598

View File

@ -218,8 +218,8 @@ after_success:
# Generate code coverage report # Generate code coverage report
- if [ "${CODE_COVERAGE}" == "True" ]; then - if [ "${CODE_COVERAGE}" == "True" ]; then
cd build_directory cd build_directory
lcov --directory 'src/' --capture --output-file coverage.info lcov --directory . --capture --output-file coverage.info
lcov --remove coverage.info '/usr/*' --output-file coverage.info lcov --remove coverage.info '/usr/*' '*/test/*' --output-file coverage.info
lcov --list coverage.info lcov --list coverage.info
bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports" bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
fi fi