forked from OpenModelica/OMPython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
36 lines (36 loc) · 907 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
pipeline {
agent {
dockerfile {
// Large image with full OpenModelica build dependencies; lacks omc and OMPython
label 'linux'
dir '.jenkins'
additionalBuildArgs '--pull'
}
}
stages {
stage('build') {
parallel {
stage('python2') {
steps {
sh 'python2 setup.py build'
timeout(3) {
sh 'python2 /usr/local/bin/py.test -v --junitxml py2.xml tests'
}
sh 'HOME="$PWD" python2 setup.py install --user'
junit 'py2.xml'
}
}
stage('python3') {
steps {
sh 'python3 setup.py build'
timeout(3) {
sh 'python3 /usr/local/bin/py.test -v --junitxml py3.xml tests'
}
sh 'HOME="$PWD" python3 setup.py install --user'
junit 'py3.xml'
}
}
}
}
}
}