From b14250bef951dc6125d527d331f857cd6bc9fdad Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Wed, 9 Aug 2017 02:22:12 +0300 Subject: [PATCH] test(aio): fix the `deploy-to-firebase` tests This commit also ensures that if the tests fail, the script exits with an error. --- aio/scripts/deploy-to-firebase.test.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aio/scripts/deploy-to-firebase.test.sh b/aio/scripts/deploy-to-firebase.test.sh index dd9a3235fd..6093a3ab0e 100755 --- a/aio/scripts/deploy-to-firebase.test.sh +++ b/aio/scripts/deploy-to-firebase.test.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +set +x -eu -o pipefail function check { if [[ $1 == $2 ]]; then @@ -133,11 +134,11 @@ We only deploy archive branches with the major version less than the stable bran export TRAVIS_PULL_REQUEST=false export TRAVIS_BRANCH=2.4.x export STABLE_BRANCH=2.2.x - export TRAVIS_COMMIT=$(git ls-remote origin 2.1.x | cut -c-40) + export TRAVIS_COMMIT=$(git ls-remote origin 2.4.x | cut -c-40) export FIREBASE_TOKEN=XXXXX `dirname $0`/deploy-to-firebase.sh --dry-run ) - expected="Skipping deploy of branch \"2.1.x\" to firebase. + expected="Skipping deploy of branch \"2.4.x\" to firebase. We only deploy archive branches with the major version less than the stable branch: \"2.2.x\"" check "$actual" "$expected" )