From 477db9cd4a00268c90e51807f08e049b036fd771 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Thu, 18 Jun 2020 09:30:19 +0200 Subject: [PATCH] Fix travis builds not failing when errors occur during static checking --- .travis.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index b518f8db77..107a7ce2a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,11 +35,12 @@ env: # Run the NUnit tests script: - make all - - test "$TRAVIS_OS_NAME" == "linux" && make check || echo "Skipping check" - - test "$TRAVIS_OS_NAME" == "linux" && make check-scripts || echo "Skipping scripts check" - - test "$TRAVIS_OS_NAME" == "linux" && make test || echo "Skipping tests" - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then - mono ~/.nuget/packages/nunit.consolerunner/3.11.1/tools/nunit3-console.exe --noresult OpenRA.Test.dll; + - | + if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then + make check || travis_terminate 1; + make check-scripts || travis_terminate 1; + make test || travis_terminate 1; + mono ~/.nuget/packages/nunit.consolerunner/3.11.1/tools/nunit3-console.exe --noresult OpenRA.Test.dll || travis_terminate 1; fi # Only watch the development branch and tagged release.