forked from geodynamics/sw4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinfile
55 lines (49 loc) · 1.09 KB
/
Jenkinfile
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
#!groovy
pipeline {
agent {
docker {
image 'geodynamics/sw4-buildenv-bionic:latest'
alwaysPull true
}
}
options {
timeout(time: 4, unit: 'HOURS')
}
stages {
stage('Build') {
steps {
sh 'mkdir build'
sh '''
cd build
# MPICH has issues when there are more processes than hardware threads
# See https://wiki.mpich.org/mpich/index.php/Frequently_Asked_Questions#Q:_Why_does_my_MPI_program_run_much_slower_when_I_use_more_processes.3F
cmake \
-D MPI_NUM_TEST_PROCS='4' \
-D TESTING_LEVEL='1' \
..
'''
sh '''
cd build
make
'''
}
}
stage('Test') {
steps {
sh '''
cd build
ctest --no-compress-output -T Test
'''
}
post {
always {
xunit testTimeMargin: '3000',
thresholdMode: 1,
thresholds: [failed(), skipped()],
tools: [CTest(pattern: 'build/Testing/**/*.xml')]
}
}
}
}
post { always { cleanWs() } }
}