2021-11-03 15:26:32 +00:00
|
|
|
pipeline {
|
|
|
|
agent none
|
|
|
|
stages {
|
2021-11-05 13:32:37 +00:00
|
|
|
stage('Unit Tests') {
|
|
|
|
parallel {
|
|
|
|
stage('3.6'){
|
|
|
|
agent{
|
|
|
|
dockerfile {
|
|
|
|
filename 'python36.Dockerfile'
|
|
|
|
dir '.ci'
|
2021-11-05 14:09:21 +00:00
|
|
|
args '-v pip-cache:/home/jenkins/.cache/pip'
|
2021-11-05 13:32:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
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 --cov=prototorch/ --cov-report=xml:reports/coverage.xml'
|
|
|
|
cobertura coberturaReportFile: 'reports/coverage.xml'
|
|
|
|
junit 'reports/**/*.xml'
|
2021-11-05 13:30:08 +00:00
|
|
|
}
|
2021-11-03 15:26:32 +00:00
|
|
|
}
|
2021-11-05 13:32:37 +00:00
|
|
|
stage('3.10'){
|
|
|
|
agent{
|
|
|
|
dockerfile {
|
|
|
|
filename 'python310.Dockerfile'
|
|
|
|
dir '.ci'
|
2021-11-05 14:09:21 +00:00
|
|
|
args '-v pip-cache:/home/jenkins/.cache/pip'
|
2021-11-05 13:32:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2021-11-05 13:30:08 +00:00
|
|
|
sh 'pip install pip --upgrade --progress-bar off'
|
|
|
|
sh 'pip install .[all] --progress-bar off'
|
|
|
|
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'
|
|
|
|
}
|
|
|
|
}
|
2021-11-03 15:26:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-11-04 08:55:58 +00:00
|
|
|
}
|