ci(aio): rename limits file and address comments

This commit is contained in:
Yuan Gao 2017-06-15 10:10:28 -07:00 committed by Matias Niemelä
parent ca970f5ee5
commit 2e55857c82
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash set -u -e -o pipefail
declare -A limitUncompressed declare -A limitUncompressed
limitUncompressed=(["0"]=16000 ["inline"]=1600 ["main"]=360000 ["polyfills"]=40000 ["vendor"]=520000) limitUncompressed=(["0"]=16000 ["inline"]=1600 ["main"]=360000 ["polyfills"]=40000 ["vendor"]=520000)

View File

@ -1,10 +1,11 @@
#!/bin/bash #!/bin/bash
set -u -e -o pipefail
readonly TOKEN=$ANGULAR_PAYLOAD_FIREBASE_TOKEN readonly TOKEN=$ANGULAR_PAYLOAD_FIREBASE_TOKEN
readonly PROJECT_NAME="angular-payload-size" readonly PROJECT_NAME="angular-payload-size"
readonly OUTPUT_FILE=/tmp/snapshot.tar.gz
source scripts/payload-limit.sh source scripts/_payload-limits.sh
failed=false failed=false
payloadData="" payloadData=""
@ -45,7 +46,7 @@ done
timestamp=$(date +%s) timestamp=$(date +%s)
payloadData="$payloadData\"timestamp\": $timestamp, " payloadData="$payloadData\"timestamp\": $timestamp, "
# Add change source: local, dependencies, or 'local+dependencies' # Add change source: application, dependencies, or 'application+dependencies'
allChangedFiles=$(git diff --name-only $TRAVIS_COMMIT_RANGE) allChangedFiles=$(git diff --name-only $TRAVIS_COMMIT_RANGE)
yarnChangedFiles=$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep yarn.lock) yarnChangedFiles=$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep yarn.lock)