ci: Update 1% payload size test (#20524)

PR Close #20524
This commit is contained in:
tinayuangao
2017-11-18 12:26:33 -08:00
committed by Miško Hevery
parent 0550383fc9
commit 135cf226bf
8 changed files with 40 additions and 62 deletions

View File

@ -4,9 +4,10 @@ set -e -o pipefail
cd `dirname $0`
readonly thisDir=$(cd $(dirname $0); pwd)
# Track payload size functions
source ../scripts/ci/payload-size.sh
source ./_payload-limits.sh
# Workaround https://github.com/yarnpkg/yarn/issues/2165
# Yarn will cache file://dist URIs and not update Angular code
@ -48,7 +49,7 @@ for testDir in $(ls | grep -v node_modules) ; do
if [[ $testDir == cli-hello-world ]]; then
yarn build
fi
trackPayloadSize "$testDir" "dist/*.js" true false
trackPayloadSize "$testDir" "dist/*.js" true false "${thisDir}/_payload-limits.json"
fi
)
done