From 547fec28242d24cd634c2b046a6746a5cc80e2ab Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 5 Jun 2016 16:12:57 +0200 Subject: [PATCH] Travis: run "make check" only once with DO_COVERAGE=true (#940) Fixes https://github.com/awesomeWM/awesome/issues/938. --- .travis.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index c9d81b132..f988e3942 100644 --- a/.travis.yml +++ b/.travis.yml @@ -99,12 +99,16 @@ script: cd "$BUILD_IN_DIR" cmake $CMAKE_ARGS "$SOURCE_DIRECTORY" fi - - make && sudo env PATH=$PATH make install && awesome --version && make check + - make && sudo env PATH=$PATH make install && awesome --version - | - if [ "$DO_COVERAGE" = "true" ]; then - make check-coverage || exit 1; + if [ "$TRAVIS_TEST_RESULT" = 0 ]; then + if [ "$DO_COVERAGE" = "true" ]; then + make check-coverage || exit 1 sed -i "1 i\\require('luacov.runner')('"$PWD"/.luacov')" build/awesomerc.lua || exit 1 BUILD_DIRECTORY="" tests/run.sh || exit 1 + else + make check + fi fi after_success: