test: check payload size for cli-hello-world-ivy (#27797)

Adds size bundle checking to the integration test `cli-hello-world-ivy`

PR Close #27797
This commit is contained in:
cexbrayat 2018-12-21 19:00:16 +01:00 committed by Ben Lesh
parent 62e45cef2d
commit 3f64e87ed1
2 changed files with 12 additions and 3 deletions

View File

@ -8,6 +8,15 @@
}
}
},
"cli-hello-world-ivy": {
"master": {
"uncompressed": {
"runtime": 1440,
"main": 507677,
"polyfills": 38390
}
}
},
"hello_world__closure": {
"master": {
"uncompressed": {

View File

@ -48,9 +48,9 @@ for testDir in $(ls | grep -v node_modules) ; do
yarn install --cache-folder ../$cache
yarn test || exit 1
# Track payload size for cli-hello-world and hello_world__closure and the render3 tests
if $CI && ([[ $testDir == cli-hello-world ]] || [[ $testDir == hello_world__closure ]]); then
if [[ $testDir == cli-hello-world ]]; then
# Track payload size for cli-hello-world, cli-hello-world-ivy and hello_world__closure
if $CI && ([[ $testDir == cli-hello-world ]] || [[ $testDir == cli-hello-world-ivy ]] || [[ $testDir == hello_world__closure ]]); then
if ([[ $testDir == cli-hello-world ]] || [[ $testDir == cli-hello-world-ivy ]]); then
yarn build
fi