Skip to content

Commit

Permalink
test: check payload size for cli-hello-world-ivy (#27797)
Browse files Browse the repository at this point in the history
Adds size bundle checking to the integration test `cli-hello-world-ivy`

PR Close #27797
  • Loading branch information
cexbrayat authored and benlesh committed Dec 26, 2018
1 parent 62e45ce commit 3f64e87
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions integration/_payload-limits.json
Expand Up @@ -8,6 +8,15 @@
}
}
},
"cli-hello-world-ivy": {
"master": {
"uncompressed": {
"runtime": 1440,
"main": 507677,
"polyfills": 38390
}
}
},
"hello_world__closure": {
"master": {
"uncompressed": {
Expand Down
6 changes: 3 additions & 3 deletions integration/run_tests.sh
Expand Up @@ -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

Expand Down

0 comments on commit 3f64e87

Please sign in to comment.