From da39fd70d2b5880b4c23936a05f224ecff71901c Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Wed, 10 Oct 2018 18:52:10 +0300 Subject: [PATCH] test(docs-infra): improve logging output in `test-pwa-score[-localhost]` (#26377) PR Close #26377 --- aio/scripts/test-pwa-score.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aio/scripts/test-pwa-score.js b/aio/scripts/test-pwa-score.js index dda2fb14dd..80d4601215 100644 --- a/aio/scripts/test-pwa-score.js +++ b/aio/scripts/test-pwa-score.js @@ -24,10 +24,14 @@ const SKIPPED_HTTPS_AUDITS = ['redirects-http']; const VIEWER_URL = 'https://googlechrome.github.io/lighthouse/viewer/'; -// Specify the path and flags for Chrome on Travis +// Specify the path and flags for Chrome on Travis. if (process.env.TRAVIS) { process.env.LIGHTHOUSE_CHROMIUM_PATH = process.env.CHROME_BIN; CHROME_LAUNCH_OPTS.chromeFlags = ['--no-sandbox']; +} + +// Be less verbose on CI. +if (process.env.CI) { LIGHTHOUSE_FLAGS.logLevel = 'error'; }