From af1debceaf610407d913822c19493426674663a6 Mon Sep 17 00:00:00 2001 From: Cesare Rocchi Date: Wed, 11 Jul 2018 18:32:41 +0200 Subject: [PATCH] Exit with a non zero code if any of the two suites fails --- ci/run-java-tests.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/run-java-tests.sh b/ci/run-java-tests.sh index c33011373..ac1ae8a0f 100755 --- a/ci/run-java-tests.sh +++ b/ci/run-java-tests.sh @@ -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