2020-08-10 15:03:40 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
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}" \
|
2020-08-10 15:15:32 +02:00
|
|
|
"$PA11Y_URL" || exit 0
|