From a6feac65ed77fea65aeab994955c281bf3f3e004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Matos?= <joao@tritao.eu> Date: Wed, 7 Oct 2015 14:35:07 +0100 Subject: [PATCH] Attempt to fix test success evaluation on Travis. --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4acce000..414d980d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,4 +37,6 @@ script: - if [ "$TRAVIS_OS_NAME" = "linux" ]; then BUILD_CONF=release_x64; else BUILD_CONF=release_x32; fi - $PREMAKE --file=build/premake4.lua gmake - config=$BUILD_CONF make -C build/gmake/ - - for test in build/gmake/lib/Release_*/*.Tests.*.dll; do MONO_PATH=deps/NUnit.Runners.2.6.4/tools mono deps/NUnit.Runners.2.6.4/tools/nunit-console.exe -nologo $test; done + - TEST_RESULT=0 + - for test in build/gmake/lib/Release_*/*.Tests.*.dll; do MONO_PATH=deps/NUnit.Runners.2.6.4/tools mono deps/NUnit.Runners.2.6.4/tools/nunit-console.exe -nologo $test || TEST_RESULT=$?; done + - [ ! $TEST_RESULT -eq 0 ] && exit $TEST_RESULT