run/post coverage even if tests fail

This commit is contained in:
Dane Springmeyer 2015-10-20 23:27:39 -07:00
parent 56d8516216
commit e547ee127c

View file

@ -72,13 +72,14 @@ script:
./configure; ./configure;
fi fi
- make - make
- make test - make test || TEST_RESULT=$?
- if [[ ${COVERAGE} == true ]]; then - 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; ./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 fi
- if [[ ${COVERAGE} != true ]]; then - if [[ ${COVERAGE} != true ]]; then
make bench; make bench;
fi fi
- if [[ ${TEST_RESULT} != 0 ]]; then exit $TEST_RESULT ; fi;
- if [[ ${MASON_PUBLISH} == true ]]; then - if [[ ${MASON_PUBLISH} == true ]]; then
./mason_latest.sh build; ./mason_latest.sh build;
./mason_latest.sh link; ./mason_latest.sh link;