chore(analytics): Travis job testing Dart payload size

Add a job to the Travis build matrix that checks the size of the
`hello_world` app against targets hard-coded in the gulpfile.

Closes #5314
This commit is contained in:
Tim Blasi 2015-11-20 09:59:08 -08:00 committed by Timothy Blasi
parent 31f85f0297
commit 163164cb79
2 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,7 @@ env:
- MODE=router DART_CHANNEL=dev DART_VERSION=$DART_DEV_VERSION - MODE=router DART_CHANNEL=dev DART_VERSION=$DART_DEV_VERSION
- MODE=build_only DART_CHANNEL=stable DART_VERSION=$DART_STABLE_VERSION - MODE=build_only DART_CHANNEL=stable DART_VERSION=$DART_STABLE_VERSION
- MODE=lint DART_CHANNEL=dev DART_VERSION=$DART_DEV_VERSION - MODE=lint DART_CHANNEL=dev DART_VERSION=$DART_DEV_VERSION
- MODE=payload DART_CHANNEL=stable DART_VERSION=$DART_STABLE_VERSION
matrix: matrix:
allow_failures: allow_failures:

View File

@ -18,6 +18,9 @@ elif [ "$MODE" = "build_only" ]; then
${SCRIPT_DIR}/build_js.sh ${SCRIPT_DIR}/build_js.sh
${SCRIPT_DIR}/build_dart.sh ${SCRIPT_DIR}/build_dart.sh
mkdir deploy; tar -czpf deploy/dist.tgz -C dist . mkdir deploy; tar -czpf deploy/dist.tgz -C dist .
elif [ "$MODE" = "payload" ]; then
source ${SCRIPT_DIR}/env_dart.sh
./node_modules/.bin/gulp test.payload.dart/ci
else else
${SCRIPT_DIR}/build_$MODE.sh ${SCRIPT_DIR}/build_$MODE.sh
${SCRIPT_DIR}/test_$MODE.sh ${SCRIPT_DIR}/test_$MODE.sh