test(docs-infra): improve logging output in `test-pwa-score[-localhost]` (#26377)
PR Close #26377
This commit is contained in:
parent
ee0b857172
commit
da39fd70d2
|
@ -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';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue