From e547ee127ce0703c44e61aeeb2b544da932defb0 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 20 Oct 2015 23:27:39 -0700 Subject: [PATCH] run/post coverage even if tests fail --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c0e2afb14..01ff42532 100644 --- a/.travis.yml +++ b/.travis.yml @@ -72,13 +72,14 @@ script: ./configure; fi - make - - make test + - make test || TEST_RESULT=$? - if [[ ${COVERAGE} == true ]]; then ./mason_packages/.link/bin/cpp-coveralls --build-root . --gcov-options '\-lp' --exclude mason_packages --exclude .sconf_temp --exclude benchmark --exclude deps --exclude scons --exclude test --exclude demo --exclude docs --exclude fonts --exclude utils > /dev/null; fi - if [[ ${COVERAGE} != true ]]; then make bench; fi + - if [[ ${TEST_RESULT} != 0 ]]; then exit $TEST_RESULT ; fi; - if [[ ${MASON_PUBLISH} == true ]]; then ./mason_latest.sh build; ./mason_latest.sh link;