Edit travis file

This commit is contained in:
Daniel Chappuis 2018-04-06 17:32:53 +02:00
parent 95df1c9fdf
commit 6a4dc24af1

View File

@ -216,10 +216,10 @@ script:
after_success: after_success:
# Generate code coverage report # Generate code coverage report
- cd build_directory - if [ "${CODE_COVERAGE}" == "True" ]; then
- lcov --directory . --capture --output-file coverage.info cd build_directory
- lcov --remove coverage.info '/usr/*' --output-file coverage.info lcov --directory . --capture --output-file coverage.info
- lcov --list coverage.info lcov --remove coverage.info '/usr/*' --output-file coverage.info
lcov --list coverage.info
# Uploading code coverage report to CodeCov 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