-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
80 lines (76 loc) · 1.28 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
pipeline {
agent {
dockerfile true
}
stages {
stage ('Clean All') {
steps {
dir('Ness1') {
sh 'make clean'
}
dir('Ness2') {
sh 'make clean'
}
}
}
stage ('Build All') {
steps {
dir('Ness1') {
sh 'make'
}
dir('Ness2') {
sh 'make'
}
dir('Ness3') {
sh 'make'
}
dir('Ness4') {
sh 'make'
}
}
}
stage ('Test All') {
steps {
dir('Ness1') {
sh 'make gcov/5ps_test'
sh './gcov/5ps_test'
}
dir('Ness2') {
sh 'make test'
sh './gcov/schedule_test'
}
dir('Ness3') {
sh 'make test'
sh './gcov/elevator_test'
}
}
}
stage ('Coverage All') {
steps {
dir('Ness1') {
sh 'make gcov/5ps'
dir('gcov') {
sh 'gcovr -r . --xml -o rep.xml'
sh 'gcovr -r . --html --html-details -o rep.html'
}
}
dir('Ness2/gcov') {
sh 'gcovr -r . --xml -o rep.xml'
sh 'gcovr -r . --html --html-details -o rep.html'
}
dir('Ness3/gcov') {
sh 'gcovr -r . --xml -o rep.xml'
sh 'gcovr -r . --html --html-details -o rep.html'
}
}
}
}
post {
always {
junit 'Ness1/run_xunit.xml'
junit 'Ness2/run_xunit.xml'
junit 'Ness3/run_xunit.xml'
cobertura coberturaReportFile: 'Ness3/gcov/rep.xml'
}
}
}