blob: 2c67bd99b06a2df55c7763b8662466ff06784f56 (
plain)
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
|
node {
stage('Checkout') {
checkout scm
}
stage('Build') {
if(fileExists('Makefile'))
sh 'make distclean'
sh '''
qmake
make -j4
'''
}
stage('Build test') {
if(fileExists('tests/unit/Makefile'))
sh '''
cd tests/unit
make distclean
'''
sh '''
cd tests/unit
qmake
make -j4
'''
}
stage('Run tests') {
sh '''
cd tests/unit
xvfb-run ./unittest --gtest_output=xml:gtestreport.xml
'''
junit 'tests/unit/*.xml'
}
}
|