Jenkins/resources/com/cadoles/lighthouse/run-audit.sh

19 lines
365 B
Bash
Raw Normal View History

#!/bin/sh
set -x
envtpl -o config.js /home/lighthouse/config.js.tmpl
mkdir -p reports
rm -f reports/*
cd reports
lighthouse \
2021-02-22 17:06:58 +01:00
"$LIGHTHOUSE_URL" \
--no-enable-error-reporting \
--chrome-flags="--headless --disable-dev-shm-usage --no-sandbox --disable-gpu" \
--config=../config.js \
--output json --output html \
2021-02-22 17:06:58 +01:00
--output-path=lighthouse