From b682c75a293a1b2cb89cf58b7543956e6d26b560 Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Thu, 14 May 2020 15:30:38 +0200 Subject: [PATCH] Working on travis file --- .travis.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 24f5182e..fa2dfa80 100644 --- a/.travis.yml +++ b/.travis.yml @@ -249,19 +249,21 @@ branches: - develop script: - - mkdir build_directory - - cd build_directory + - mkdir build_rp3d + - cd build_rp3d - cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} —DRP3D_DOUBLE_PRECISION_ENABLED=${DOUBLE_PRECISION} -DRP3D_COMPILE_TESTS=True -DRP3D_PROFILING_ENABLED=${PROFILER} -DRP3D_CODE_COVERAGE_ENABLED=${CODE_COVERAGE} ../ - make -j2 && make test ARGS="-V" - if [ "${VALGRIND}" == "True" ]; then valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --error-exitcode=1 test/tests; fi - - sudo make install - - cd ../ - - mkdir build_helloworld - - cd build_helloworld - - cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ../helloworld/ - - make -j2 + - if [ "${CODE_COVERAGE}" == "False" ]; then + sudo make install; + cd ../; + mkdir build_helloworld; + cd build_helloworld; + cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ../helloworld/; + make -j2; + fi after_success: