From b6cd3ab142ea8628af4ccf0cd175449459c79b7a Mon Sep 17 00:00:00 2001 From: Gaurav Goswami Date: Wed, 2 Jun 2021 13:39:11 +0530 Subject: [PATCH] fix(TestScript): ITs script should exit with error code for test failure --- build/testScript.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/testScript.sh b/build/testScript.sh index 23b9ca1..dfa1f9d 100755 --- a/build/testScript.sh +++ b/build/testScript.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -euo pipefail + if [[ $TRAVIS_BRANCH == "main" && $TRAVIS_PULL_REQUEST == "false" ]]; then curl https://us-south.functions.appdomain.cloud/api/v1/web/e6b54af6-ab44-4149-a8e4-e906dcc58136/default/secadvstg-location-shift.json echo "${FINDINGS_ENV}" | base64 -d >> findings_v1.env