ci(aio): verify that the Lighthouse PWA score remains above a threshold

This commit is contained in:
Georgios Kalpakas
2017-04-01 02:24:25 +03:00
committed by Pete Bacon Darwin
parent a73050de48
commit 49d97e1216
8 changed files with 366 additions and 19 deletions

View File

@ -58,6 +58,12 @@ if [[ ${TRAVIS:-} ]]; then
browserstack_optional)
setEnvVar KARMA_JS_BROWSERS `node -e "console.log(require('/home/travis/build/angular/angular/browser-providers.conf').browserstackAliases.CI_OPTIONAL.join(','))"`
;;
aio)
# Due to network latency/server performance, the min accepted PWA score
# on previews is a little lower than on staging.
setEnvVar MIN_PWA_SCORE_PREVIEW 93
setEnvVar MIN_PWA_SCORE_STAGING 95
;;
esac
else
setEnvVar KARMA_JS_BROWSERS Chrome