build(aio): turn on debugging of the payload.sh script to debug ci failures
This commit is contained in:
parent
dd04f09483
commit
7955cacec4
@ -1,13 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# WARNING: FIREBASE_TOKEN should NOT be printed.
|
set -eu -o pipefail
|
||||||
set +x -eu -o pipefail
|
|
||||||
|
|
||||||
readonly thisDir=$(cd $(dirname $0); pwd)
|
readonly thisDir=$(cd $(dirname $0); pwd)
|
||||||
readonly parentDir=$(dirname $thisDir)
|
readonly parentDir=$(dirname $thisDir)
|
||||||
readonly TOKEN=${ANGULAR_PAYLOAD_FIREBASE_TOKEN:-}
|
readonly TOKEN=${ANGULAR_PAYLOAD_FIREBASE_TOKEN:-}
|
||||||
readonly PROJECT_NAME="angular-payload-size"
|
readonly PROJECT_NAME="angular-payload-size"
|
||||||
|
|
||||||
|
# temporarily turn on debugging - we disable it later in the script to prevent token leak
|
||||||
|
set -x
|
||||||
|
|
||||||
source ${thisDir}/_payload-limits.sh
|
source ${thisDir}/_payload-limits.sh
|
||||||
|
|
||||||
failed=false
|
failed=false
|
||||||
@ -66,6 +68,9 @@ echo $payloadData
|
|||||||
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
|
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
|
||||||
readonly safeBranchName=$(echo $TRAVIS_BRANCH | sed -e 's/\./_/g')
|
readonly safeBranchName=$(echo $TRAVIS_BRANCH | sed -e 's/\./_/g')
|
||||||
readonly dbPath=/payload/aio/$safeBranchName/$TRAVIS_COMMIT
|
readonly dbPath=/payload/aio/$safeBranchName/$TRAVIS_COMMIT
|
||||||
|
|
||||||
|
# WARNING: FIREBASE_TOKEN should NOT be printed.
|
||||||
|
set +x
|
||||||
firebase database:update --data "$payloadData" --project $PROJECT_NAME --confirm --token "$TOKEN" $dbPath
|
firebase database:update --data "$payloadData" --project $PROJECT_NAME --confirm --token "$TOKEN" $dbPath
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user