pa11y: possibilité de spécifier le standard d'audit
This commit is contained in:
parent
ffe16b7927
commit
11f3ddc835
|
@ -15,4 +15,5 @@ pa11y \
|
||||||
--include-warnings \
|
--include-warnings \
|
||||||
--include-notices \
|
--include-notices \
|
||||||
--reporter "${PA11Y_REPORTER}" \
|
--reporter "${PA11Y_REPORTER}" \
|
||||||
|
--standard "${PA11Y_STANDARD}" \
|
||||||
"$PA11Y_URL" || exit 0
|
"$PA11Y_URL" || exit 0
|
||||||
|
|
|
@ -2,6 +2,7 @@ def audit(String url, Map params = [:]) {
|
||||||
def reporter = params.reporter ? params.reporter : 'html'
|
def reporter = params.reporter ? params.reporter : 'html'
|
||||||
def username = params.username ? params.username : '';
|
def username = params.username ? params.username : '';
|
||||||
def password = params.password ? params.password : '';
|
def password = params.password ? params.password : '';
|
||||||
|
def standard = params.standard ? params.standard : 'WCAG2AA';
|
||||||
|
|
||||||
def pa11yImage = buildDockerImage()
|
def pa11yImage = buildDockerImage()
|
||||||
|
|
||||||
|
@ -10,6 +11,7 @@ def audit(String url, Map params = [:]) {
|
||||||
-e PA11Y_URL='${url}'
|
-e PA11Y_URL='${url}'
|
||||||
-e PA11Y_USERNAME='${username}'
|
-e PA11Y_USERNAME='${username}'
|
||||||
-e PA11Y_PASSWORD='${password}'
|
-e PA11Y_PASSWORD='${password}'
|
||||||
|
-e PA11Y_STANDARD='${standard}'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
pa11yImage.inside(dockerArgs) {
|
pa11yImage.inside(dockerArgs) {
|
||||||
|
|
Loading…
Reference in New Issue