From dd61d93a70038d9d1cca259a8d8eb3aff7914941 Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Wed, 11 Apr 2018 07:11:25 +0200 Subject: [PATCH] Edit travis file --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2a7477a0..ba7ef1cb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,8 @@ language: cpp install: - - sudo apt-get update -qq - - sudo apt-get install valgrind + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install valgrind; fi matrix: @@ -228,7 +228,7 @@ script: - cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} —DDOUBLE_PRECISION_ENABLED=${DOUBLE_PRECISION} -DCOMPILE_TESTS=True -DLOGS_ENABLE=${LOGGER} -DPROFILING_ENABLED=${PROFILER} -DCODE_COVERAGE_ENABLED=${CODE_COVERAGE} ../ - make && make test ARGS="-V" - if [ "${VALGRIND}" == "True" ]; then - valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --error-exitcode test/tests; + valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --error-exitcode=1 test/tests; fi after_success: