From a800a5118a39a507cf3bd7ee2d190df80c1a4ee8 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Thu, 10 May 2018 13:38:45 +0100 Subject: [PATCH] ci(docs-infra): move the payload-size check to the test job --- scripts/ci/test-aio.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/ci/test-aio.sh b/scripts/ci/test-aio.sh index 11d7967b76..84bfe46fbb 100755 --- a/scripts/ci/test-aio.sh +++ b/scripts/ci/test-aio.sh @@ -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 travisFoldEnd "test.aio.unit" - # Run e2e tests travisFoldStart "test.aio.e2e" yarn e2e