-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
58 lines (56 loc) · 1.46 KB
/
Jenkinsfile
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env groovy
@Library('kanolib') _
pipeline {
agent {
label 'ubuntu_18.04_with_docker'
}
post {
always {
junit allowEmptyResults: true, testResults: 'test-results.xml'
cobertura coberturaReportFile: 'coverage/cobertura-coverage.xml'
step([$class: 'CheckStylePublisher', pattern: 'eslint.xml'])
}
regression {
notify_culprits currentBuild.result
}
fixed {
notify_culprits currentBuild.result
}
}
stages {
stage('checkout') {
steps {
checkout scm
}
}
stage('install dependencies') {
steps {
script {
docker.image('node:8-alpine').inside {
sh "yarn"
sh "yarn tsc"
}
}
}
}
stage('checkstyle') {
steps {
script {
docker.image('node:8-alpine').inside {
sh "yarn lint-ci"
}
}
}
}
stage('test') {
steps {
script {
docker.image('kanocomputing/puppeteer').inside('--cap-add=SYS_ADMIN') {
sh "yarn test-ci"
sh "yarn coverage-ci"
}
}
}
}
}
}