Séparation de pa11y et lighthouse

This commit is contained in:
2020-08-10 15:03:40 +02:00
parent b2f0a6c182
commit 7f2ef25102
9 changed files with 134 additions and 14 deletions

View File

@ -0,0 +1,20 @@
#!/bin/bash
set -x
envtpl -o patty.json /home/pa11y/patty.json.tmpl
mkdir -p reports
rm -f reports/*
cd reports
export PUPPETEER_EXECUTABLE_PATH=$(which chromium-browser)
export PA11Y_REPORTER="${PA11Y_REPORTER:-html}"
pa11y \
--config ../patty.json \
--include-warnings \
--include-notices \
--reporter "${PA11Y_REPORTER}" \
"$PA11Y_URL" > "pa11y.report.${PA11Y_REPORTER}" || exit 0