From 6a4dc24af11a4cac0c79ab444dd631ac94edd65b Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Fri, 6 Apr 2018 17:32:53 +0200 Subject: [PATCH] Edit travis file --- .travis.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6e20ec08..95b9c4ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -216,10 +216,10 @@ script: after_success: # Generate code coverage report - - cd build_directory - - lcov --directory . --capture --output-file 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" + - if [ "${CODE_COVERAGE}" == "True" ]; then + cd build_directory + lcov --directory . --capture --output-file coverage.info + lcov --remove coverage.info '/usr/*' --output-file coverage.info + lcov --list coverage.info + bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports" + fi