From ea187fadfc8bd13ab1b1712605634538484b4aa1 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Fri, 4 Jan 2019 17:18:35 +0200 Subject: [PATCH] Added 'set -e' to test scripts to exit correctly --- scripts/runCheckstyle.sh | 1 + scripts/runTests.sh | 1 + scripts/sonar.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/scripts/runCheckstyle.sh b/scripts/runCheckstyle.sh index 6784ac3f6..016647f66 100644 --- a/scripts/runCheckstyle.sh +++ b/scripts/runCheckstyle.sh @@ -1,3 +1,4 @@ +set -e cd $TRAVIS_BUILD_DIR/Plan gradle checkstyleMain gradle checkstyleTest diff --git a/scripts/runTests.sh b/scripts/runTests.sh index 84662f64b..7ed549ea4 100644 --- a/scripts/runTests.sh +++ b/scripts/runTests.sh @@ -1,3 +1,4 @@ +set -e cd $TRAVIS_BUILD_DIR/Plan gradle test --info cd $HOME diff --git a/scripts/sonar.sh b/scripts/sonar.sh index fe13bc38b..4c7c27fcd 100644 --- a/scripts/sonar.sh +++ b/scripts/sonar.sh @@ -1,3 +1,4 @@ +set -e cd $TRAVIS_BUILD_DIR/Plan if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then gradle sonarqube