Skip to content

Commit e4b650b

Browse files
committed
Add junit xml-file for Jenkins
1 parent 2a50f39 commit e4b650b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Jenkinsfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ apt-get install -qy --no-install-recommends omc
2626
timeout(1) {
2727
// OpenModelica does not like running as root
2828
sh 'chown -R nobody .'
29+
sh 'pip2 install pytest'
2930
sh 'sudo -u nobody python2 setup.py build'
30-
sh 'sudo -u nobody python2 setup.py test'
31+
sh 'sudo -u nobody py.test -v --junitxml py2.xml tests/*.py'
3132
sh 'python2 setup.py install'
33+
junit 'py2.xml'
3234
}
3335
}
3436
}
@@ -37,9 +39,11 @@ apt-get install -qy --no-install-recommends omc
3739
timeout(1) {
3840
// OpenModelica does not like running as root
3941
sh 'chown -R nobody .'
42+
sh 'pip3 install pytest'
4043
sh 'sudo -u nobody python3 setup.py build'
41-
sh 'sudo -u nobody python3 setup.py test'
44+
sh 'sudo -u nobody py.test -v --junitxml py3.xml tests/*.py'
4245
sh 'python3 setup.py install'
46+
junit 'py3.xml'
4347
}
4448
}
4549
}

0 commit comments

Comments
 (0)