ci(aio): Fix the payload script only check for changes in aio/scripts

This commit is contained in:
Yuan Gao 2017-06-30 10:08:33 -07:00 committed by Pete Bacon Darwin
parent dc88e0a881
commit 9263da570f
1 changed files with 4 additions and 3 deletions

View File

@ -4,10 +4,11 @@
set +x -eu -o pipefail
readonly thisDir=$(cd $(dirname $0); pwd)
readonly parentDir=$(dirname $thisDir)
readonly TOKEN=${ANGULAR_PAYLOAD_FIREBASE_TOKEN:-}
readonly PROJECT_NAME="angular-payload-size"
source scripts/_payload-limits.sh
source ${thisDir}/_payload-limits.sh
failed=false
payloadData=""
@ -43,8 +44,8 @@ payloadData="$payloadData\"timestamp\": $timestamp, "
# Add change source: application, dependencies, or 'application+dependencies'
yarnChanged=false
allChangedFiles=$(git diff --name-only $TRAVIS_COMMIT_RANGE $thisDir | wc -l)
allChangedFileNames=$(git diff --name-only $TRAVIS_COMMIT_RANGE $thisDir)
allChangedFiles=$(git diff --name-only $TRAVIS_COMMIT_RANGE $parentDir | wc -l)
allChangedFileNames=$(git diff --name-only $TRAVIS_COMMIT_RANGE $parentDir)
if [[ $allChangedFileNames == *"yarn.lock"* ]]; then
yarnChanged=true