test(docs-infra): improve logging output in `test-pwa-score[-localhost]` (#26377)

PR Close #26377
This commit is contained in:
George Kalpakas 2018-10-10 18:52:10 +03:00 committed by Alex Rickabaugh
parent ee0b857172
commit da39fd70d2
1 changed files with 5 additions and 1 deletions

View File

@ -24,10 +24,14 @@ const SKIPPED_HTTPS_AUDITS = ['redirects-http'];
const VIEWER_URL = 'https://googlechrome.github.io/lighthouse/viewer/'; 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) { if (process.env.TRAVIS) {
process.env.LIGHTHOUSE_CHROMIUM_PATH = process.env.CHROME_BIN; process.env.LIGHTHOUSE_CHROMIUM_PATH = process.env.CHROME_BIN;
CHROME_LAUNCH_OPTS.chromeFlags = ['--no-sandbox']; CHROME_LAUNCH_OPTS.chromeFlags = ['--no-sandbox'];
}
// Be less verbose on CI.
if (process.env.CI) {
LIGHTHOUSE_FLAGS.logLevel = 'error'; LIGHTHOUSE_FLAGS.logLevel = 'error';
} }