misc: add unit testing in jenkinsfile (#63120)

This commit is contained in:
Paul Marillonnet 2022-03-23 17:09:49 +01:00
parent 6dc0d61030
commit 2f16a39a93
1 changed files with 20 additions and 0 deletions

20
Jenkinsfile vendored
View File

@ -2,7 +2,27 @@
pipeline {
agent any
options {
disableConcurrentBuilds()
timeout(time: 20, unit: 'MINUTES')
}
stages {
stage('Unit Tests') {
steps {
sh 'tox -rv'
}
post {
always {
script {
utils = new Utils()
utils.publish_coverage('coverage.xml')
utils.publish_coverage_native('index.html')
utils.publish_pylint('pylint.out')
}
mergeJunitResults()
}
}
}
stage('Packaging') {
steps {
script {