Skip to content

Commit

Permalink
Exit with a non zero code if any of the two suites fails
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyboy authored and paddybyers committed Jul 17, 2018
1 parent 59100ab commit af1debc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ci/run-java-tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# We unset this, otherwise gradlew picks up settings also from the android "context", like here: https://travis-ci.org/ably/ably-java/jobs/353969106#L1980
unset ANDROID_HOME

./gradlew java:testRealtimeSuite
./gradlew java:testRestSuite
ret=0
./gradlew java:testRealtimeSuite || ret=1
./gradlew java:testRestSuite || ret=1
exit $ret

0 comments on commit af1debc

Please sign in to comment.