-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
42 lines (41 loc) · 1.14 KB
/
Jenkinsfile
File metadata and controls
42 lines (41 loc) · 1.14 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
pipeline {
agent any
tools {nodejs "npm"}
stages {
stage('Install Dependencies') {
steps {
sh 'npm install'
sh 'npm install pa11y'
sh 'npm ci'
}
}
stage('CodeceptJS Tests') {
steps {
sh 'npx codeceptjs run'
}
}
stage('Run Pa11y Tests') {
steps {
sh 'npx pa11y-ci --config .pa11yci.json --reporter pa11y-ci-reporter-html || true'
}
post {
always {
publishHTML([
allowMissing: false,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir: 'pa11y-ci-report',
reportFiles: '**/*.html',
reportName: 'Pa11y Accessibility Report',
reportTitles: 'Report for URL'
])
}
}
}
stage('Publish integration test results') {
steps {
junit 'output/result.xml'
}
}
}
}