ci(docs-infra): move the payload-size check to the test job

This commit is contained in:
Pete Bacon Darwin 2018-05-10 13:38:45 +01:00 committed by Miško Hevery
parent ec3ecfcdf1
commit 98e3ef4003

View File

@ -24,13 +24,17 @@ source ${thisDir}/_travis-fold.sh
yarn test-pwa-score-localhost
travisFoldEnd "test.aio.pwaScore"
# Check the bundle sizes.
# (Run before unit and e2e tests, which destroy the `dist/` directory.)
travisFoldStart "test.aio.payload-size"
yarn payload-size
travisFoldEnd "test.aio.payload-size"
# Run unit tests
travisFoldStart "test.aio.unit"
yarn test --single-run
travisFoldEnd "test.aio.unit"
# Run e2e tests
travisFoldStart "test.aio.e2e"
# Use `production` mode to catch issues introduced by build optimizations.