Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
travis: don't try to launch the tests if the compilation failed
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 30 May 2016 09:45:08 +0000 (11:45 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 30 May 2016 09:45:12 +0000 (11:45 +0200)
.travis.yml

index c1da36a..7f83eac 100644 (file)
@@ -46,8 +46,8 @@ addons:
 # Still need sudo for update-alternatives
 script:
    - cmake -Denable_documentation=OFF -Denable_coverage=OFF -Denable_java=ON -Denable_model-checking=OFF -Denable_lua=OFF -Denable_compile_optimizations=OFF -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF -Denable_compile_warnings=ON . 
 # Still need sudo for update-alternatives
 script:
    - cmake -Denable_documentation=OFF -Denable_coverage=OFF -Denable_java=ON -Denable_model-checking=OFF -Denable_lua=OFF -Denable_compile_optimizations=OFF -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF -Denable_compile_warnings=ON . 
-   - ./tools/internal/travis-sonarqube.sh make VERBOSE=1 # run make in the sonar wrapper
-   - ctest --output-on-failure --timeout 100
+   # run make in the sonar wrapper && run the tests only if the build suceeded
+   - ./tools/internal/travis-sonarqube.sh make VERBOSE=1 && ctest --output-on-failure --timeout 100
 notifications:
   recipients:
     - martin.quinson@ens-rennes.fr
 notifications:
   recipients:
     - martin.quinson@ens-rennes.fr