ci(aio): upload the preview before checking the bundle sizes (#23123)

This makes the preview available even if the bundle sizes are out of
limits.

PR Close #23123
This commit is contained in:
George Kalpakas 2018-04-02 11:27:22 +03:00 committed by Igor Minar
parent 524e5d8ae7
commit ce43e96d49
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,6 @@ readonly relevantChangedFilesCount=$(git diff --name-only $TRAVIS_COMMIT_RANGE |
yarn build yarn build
fi fi
tar --create --gzip --directory "$INPUT_DIR" --file "$OUTPUT_FILE" . tar --create --gzip --directory "$INPUT_DIR" --file "$OUTPUT_FILE" .
yarn payload-size
# Deploy to staging # Deploy to staging
readonly output=$( readonly output=$(
@ -53,4 +52,7 @@ readonly relevantChangedFilesCount=$(git diff --name-only $TRAVIS_COMMIT_RANGE |
if [[ $httpCode -ne 202 ]] && [[ "$isHidden" != "true" ]]; then if [[ $httpCode -ne 202 ]] && [[ "$isHidden" != "true" ]]; then
yarn test-pwa-score "$DEPLOYED_URL" "$MIN_PWA_SCORE" yarn test-pwa-score "$DEPLOYED_URL" "$MIN_PWA_SCORE"
fi fi
# Check the bundle sizes.
yarn payload-size
) )