Make sure to exit with the correct status.

This commit is contained in:
pentarctagon 2020-01-03 08:57:59 -06:00 committed by Pentarctagon
parent 392f84afff
commit d1f2d9add2

View file

@ -41,8 +41,11 @@ if [ "$TRAVIS_OS_NAME" = "osx" ]; then
fi
elif [ "$TRAVIS_OS_NAME" = "windows" ]; then
powershell "MSBuild.exe projectfiles/VC14/wesnoth.sln -p:PlatformToolset=v141 -p:Configuration=$OPT"
if [ "$OPT" == "Release" ]; then
BUILD_RET=$?
if [ "$OPT" == "Release" ] && [ "$BUILD_RET" == "0" ]; then
./run_wml_tests -g -v -c -t "$WML_TEST_TIME"
else
exit $BUILD_RET
fi
else
# additional permissions required due to flatpak's use of bubblewrap