-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathJenkinsfile
More file actions
61 lines (60 loc) · 1.61 KB
/
Copy pathJenkinsfile
File metadata and controls
61 lines (60 loc) · 1.61 KB
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
pipeline {
agent {
docker {
image 'fluidity/spudbase:bionic'
label 'dockerhost'
}
}
environment {
OMPI_MCA_btl = '^openib'
}
stages {
stage('Configuring') {
steps {
sh './configure --prefix=/home/spud'
}
}
stage('Building (python3 default)') {
steps {
sh 'make -j'
sh 'make install'
}
}
stage('Testing fortran library') {
steps {
sh 'make junittest' ;
junit 'src/tests/test_result*xml'
}
}
stage('Testing (python3 default)') {
steps {
withEnv(['PYTHONPATH=/home/spud/lib/python3.6/site-packages',
'LD_LIBRARY_PATH=/home/spud/lib']) {
sh 'cd python; python3 test_libspud_junit.py'
}
junit 'python/test_result*xml'
sh 'rm python/test_result*xml'
}
}
stage('Building libspud for python2') {
steps {
sh 'cd python; python2 setup.py install --prefix=/home/spud; cd ..'
}
}
stage('Testing for python2') {
steps {
withEnv(['PYTHONPATH=/home/spud/lib/python2.7/site-packages',
'LD_LIBRARY_PATH=/home/spud/lib']) {
sh 'cd python; python2 test_libspud_junit.py'
}
junit 'python/test_result*xml'
sh 'rm python/test_result*xml'
}
}
stage('Building documentation') {
steps {
sh 'make doc'
}
}
}
}