From 11f3ddc83523f0c4e9ab59d76a20a507e67d354f Mon Sep 17 00:00:00 2001 From: William Petit Date: Tue, 11 Aug 2020 10:22:57 +0200 Subject: [PATCH] =?UTF-8?q?pa11y:=20possibilit=C3=A9=20de=20sp=C3=A9cifier?= =?UTF-8?q?=20le=20standard=20d'audit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/com/cadoles/pa11y/run-audit.sh | 1 + vars/pa11y.groovy | 2 ++ 2 files changed, 3 insertions(+) diff --git a/resources/com/cadoles/pa11y/run-audit.sh b/resources/com/cadoles/pa11y/run-audit.sh index dca6d8a..1318705 100644 --- a/resources/com/cadoles/pa11y/run-audit.sh +++ b/resources/com/cadoles/pa11y/run-audit.sh @@ -15,4 +15,5 @@ pa11y \ --include-warnings \ --include-notices \ --reporter "${PA11Y_REPORTER}" \ + --standard "${PA11Y_STANDARD}" \ "$PA11Y_URL" || exit 0 diff --git a/vars/pa11y.groovy b/vars/pa11y.groovy index f03400b..4f11466 100644 --- a/vars/pa11y.groovy +++ b/vars/pa11y.groovy @@ -2,6 +2,7 @@ def audit(String url, Map params = [:]) { def reporter = params.reporter ? params.reporter : 'html' def username = params.username ? params.username : ''; def password = params.password ? params.password : ''; + def standard = params.standard ? params.standard : 'WCAG2AA'; def pa11yImage = buildDockerImage() @@ -10,6 +11,7 @@ def audit(String url, Map params = [:]) { -e PA11Y_URL='${url}' -e PA11Y_USERNAME='${username}' -e PA11Y_PASSWORD='${password}' + -e PA11Y_STANDARD='${standard}' """ pa11yImage.inside(dockerArgs) {