Skip to content

Commit

Permalink
Make all the Travis test scripts exit in the event of error.
Browse files Browse the repository at this point in the history
Test scripts that ignore errors aren't very helpful.
  • Loading branch information
ewanmellor committed Nov 15, 2018
1 parent 4c4a1c0 commit 42adcd8
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis/run-tests-cpp.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -euo pipefail

if [ $GROUP == "LEXER" ]; then
mvn -q -Dgroups="org.antlr.v4.test.runtime.category.LexerTests" -Dtest=cpp.* test
elif [ $GROUP == "PARSER" ]; then
Expand Down
2 changes: 2 additions & 0 deletions .travis/run-tests-csharp.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -euo pipefail

mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=csharp.* test
2 changes: 2 additions & 0 deletions .travis/run-tests-dotnet.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -euo pipefail

# we need to build the runtime before test run, since we used "--no-dependencies"
# when we call dotnet cli for restore and build, in order to speed up

Expand Down
2 changes: 2 additions & 0 deletions .travis/run-tests-go.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -euo pipefail

mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=go.* test
2 changes: 2 additions & 0 deletions .travis/run-tests-java.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -euo pipefail

mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=java.* test
cd ../tool-testsuite
mvn test
2 changes: 2 additions & 0 deletions .travis/run-tests-javascript.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -euo pipefail

mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=node.* test
2 changes: 2 additions & 0 deletions .travis/run-tests-python2.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -euo pipefail

mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=python2.* test
2 changes: 2 additions & 0 deletions .travis/run-tests-python3.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -euo pipefail

mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=python3.* test

0 comments on commit 42adcd8

Please sign in to comment.