forked from Remmeauth/remme-client-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
42 lines (42 loc) · 761 Bytes
/
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
pipeline {
agent {
label 'remme-tests-worker'
}
options {
timestamps()
}
stages {
stage('Install pkg') {
steps {
sh 'npm install'
}
}
stage('Git submodule init') {
steps {
sh 'git submodule init'
}
}
stage('Git submodule update') {
steps {
sh 'git submodule update'
}
}
stage('Generate protobufs') {
steps {
sh 'npm run generate-protobufs'
}
}
stage('Generate protobufs in folder protobuf') {
steps {
sh '(cd remme-protobuf; git checkout master; npm run generate-protobufs)'
}
}
stage('Run tests') {
steps {
ansiColor('xterm') {
sh 'make test'
}
}
}
}
}