From 9371f8044a8a60f40517683618905d6c8715192d Mon Sep 17 00:00:00 2001 From: soulgalore Date: Mon, 21 Jan 2019 07:44:08 +0100 Subject: [PATCH] test the new budget in Travis --- .travis.yml | 4 ++-- test/budget.json | 47 +++++---------------------------------------- test/oldBudget.json | 44 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 44 deletions(-) create mode 100644 test/oldBudget.json diff --git a/.travis.yml b/.travis.yml index f255e1229..ef0b42c0d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,8 +26,8 @@ before_install: script: - npm run travis - npm run build:css && test -z "$(git status --porcelain lib/plugins/html/assets/css/index.css)" -- bin/sitespeed.js -b firefox -n 2 --budget.configPath test/budget.json --summary https://www.sitespeed.io/ -- bin/sitespeed.js --useHash -n 1 https://www.sitespeed.io/#heybaberia +- bin/sitespeed.js -b firefox -n 2 --budget.configPath test/oldBudget.json --summary https://www.sitespeed.io/ +- bin/sitespeed.js --useHash -n 1 --budget.configPath test/budget.json https://www.sitespeed.io/#heybaberia - bin/sitespeed.js --useAlias start --mobile -n 1 --utc https://www.sitespeed.io/ - bin/sitespeed.js -b firefox --metrics.list --mobile -n 1 https://www.sitespeed.io/ - bin/sitespeed.js --multi -b chrome -n 1 test/prepostscripts/preSample.js https://www.sitespeed.io/documentation/ test/prepostscripts/postSample.js diff --git a/test/budget.json b/test/budget.json index 69b72946b..c8525b428 100644 --- a/test/budget.json +++ b/test/budget.json @@ -1,44 +1,7 @@ { - "browsertime.pageSummary": [{ - "metric": "statistics.timings.firstPaint.median", - "max": 1000 - }, { - "metric": "statistics.visualMetrics.FirstVisualChange.median", - "max": 1000 - }], - "coach.pageSummary": [{ - "metric": "advice.performance.score", - "min": 75 - }, { - "metric": "advice.info.domElements", - "max": 500 - }, { - "metric": "advice.info.domDepth.max", - "max": 12 - }, { - "metric": "advice.info.iframes", - "max": 0 - }, { - "metric": "advice.info.pageCookies.max", - "max": 5 - }], - "pagexray.pageSummary": [{ - "metric": "transferSize", - "max": 200000 - }, { - "metric": "requests", - "max": 20 - }, { - "metric": "missingCompression", - "max": 0 - }, { - "metric": "contentTypes.css.requests", - "max": 1 - }, { - "metric": "contentTypes.image.transferSize", - "max": 200000 - },{ - "metric": "documentRedirects", - "max":0 - }] + "budget": { + "timings": { + "firstPaint": 5000 + } + } } \ No newline at end of file diff --git a/test/oldBudget.json b/test/oldBudget.json new file mode 100644 index 000000000..69b72946b --- /dev/null +++ b/test/oldBudget.json @@ -0,0 +1,44 @@ +{ + "browsertime.pageSummary": [{ + "metric": "statistics.timings.firstPaint.median", + "max": 1000 + }, { + "metric": "statistics.visualMetrics.FirstVisualChange.median", + "max": 1000 + }], + "coach.pageSummary": [{ + "metric": "advice.performance.score", + "min": 75 + }, { + "metric": "advice.info.domElements", + "max": 500 + }, { + "metric": "advice.info.domDepth.max", + "max": 12 + }, { + "metric": "advice.info.iframes", + "max": 0 + }, { + "metric": "advice.info.pageCookies.max", + "max": 5 + }], + "pagexray.pageSummary": [{ + "metric": "transferSize", + "max": 200000 + }, { + "metric": "requests", + "max": 20 + }, { + "metric": "missingCompression", + "max": 0 + }, { + "metric": "contentTypes.css.requests", + "max": 1 + }, { + "metric": "contentTypes.image.transferSize", + "max": 200000 + },{ + "metric": "documentRedirects", + "max":0 + }] +} \ No newline at end of file