-
Notifications
You must be signed in to change notification settings - Fork 2
/
htmlsniffer.yml
30 lines (28 loc) · 1.17 KB
/
htmlsniffer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
# This playbook should be executed using ansible-playbook command
# Developed for ansible version >= 1.7
- hosts: localhost
connection: local
gather_facts: no
vars:
# this variable will be overridden from jenkins.
workspace_root: .
artifacts_file: htmlsniffers.md
webroot: http://drupal.192.168.56.132.xip.io
htmlcs_path: ./devops/HTML_CodeSniffer/Contrib/PhantomJS/HTMLCS_Run.js
htmlcs_standards:
- WCAG2AA
htmlcs_paths:
- { name: 'front', path: '/' }
- { name: 'join', path: '/join' }
- { name: 'locations', path: '/join' }
- { name: 'schedules', path: '/schedules' }
- { name: 'blog', path: '/blog' }
tasks:
- name: Include specific variables per environment
become: yes
ignore_errors: yes
shell: 'echo "Acessibility Sniffer: {{ item[0].name }} page checking {{ item[1] }} {{ webroot }}/{{ item[0].name }}{{ item[1] }}htmlcs.txt" >> {{ workspace_root }}/{{ artifacts_file }} && phantomjs --web-security=false {{ htmlcs_path }} {{ webroot }}{{ item[0].path }} {{ item[1] }} >> {{ item[0].name }}{{ item[1] }}htmlcs.txt'
with_nested:
- "{{ htmlcs_paths }}"
- "{{ htmlcs_standards }}"