ci: jenkins coverage report

This commit is contained in:
Alexander Engelsberger 2021-11-05 14:04:07 +01:00
parent c203e13604
commit d54fc5dad1
No known key found for this signature in database
GPG Key ID: BE3F5909FF0D83E3
3 changed files with 4 additions and 6 deletions

6
Jenkinsfile vendored
View File

@ -12,10 +12,8 @@ pipeline {
steps {
sh 'pip install pip --upgrade --progress-bar off'
sh 'pip install .[all] --progress-bar off'
sh '~/.local/bin/pytest -v --junitxml=reports/result.xml'
}
post {
always {
sh '~/.local/bin/pytest -v --junitxml=reports/result.xml --cov=prototorch/ --cov-report=xml:reports/coverage.xml'
cobertura coberturaReportFile: 'reports/coverage.xml'
junit 'reports/**/*.xml'
}
}

View File

@ -46,7 +46,7 @@ EXAMPLES = [
"scikit-learn",
]
TESTS = [
"codecov",
"pytest-cov",
"pytest",
]
ALL = CLI + DEV + DOCS + EXAMPLES + TESTS