From 6818080871db227c2586a102306832b41ea1c0df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Mon, 19 Aug 2013 10:50:28 +0200 Subject: [PATCH] travis: really fail if the tests fail When implementing the ssh testing, the move to the script made it so the first test suite's exit code was ignored. Check whether the main tests fail and exit with an error in that case. --- script/cibuild.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/cibuild.sh b/script/cibuild.sh index 722b3349d..2b8d1af08 100755 --- a/script/cibuild.sh +++ b/script/cibuild.sh @@ -11,6 +11,11 @@ cd _build cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS cmake --build . --target install ctest -V . +ecode=$? + +if [ $ecode -ne 0 ]; then + exit $ecode +fi # Now that we've tested the raw git protocol, let's set up ssh to we # can do the push tests over it