ci: fix jenkinsfile
This commit is contained in:
parent
d11ab71b7e
commit
9d1dc7320f
44
Jenkinsfile
vendored
44
Jenkinsfile
vendored
@ -1,36 +1,38 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent none
|
agent none
|
||||||
stages {
|
stages {
|
||||||
parallel {
|
stage('Unit Tests') {
|
||||||
stage('3.6'){
|
parallel {
|
||||||
agent{
|
stage('3.6'){
|
||||||
dockerfile {
|
agent{
|
||||||
filename 'python36.Dockerfile'
|
dockerfile {
|
||||||
dir '.ci'
|
filename 'python36.Dockerfile'
|
||||||
|
dir '.ci'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
stage('3.10'){
|
||||||
|
agent{
|
||||||
|
dockerfile {
|
||||||
|
filename 'python310.Dockerfile'
|
||||||
|
dir '.ci'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
sh 'pip install pip --upgrade --progress-bar off'
|
sh 'pip install pip --upgrade --progress-bar off'
|
||||||
sh 'pip install .[all] --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'
|
sh '~/.local/bin/pytest -v --junitxml=reports/result.xml --cov=prototorch/ --cov-report=xml:reports/coverage.xml'
|
||||||
cobertura coberturaReportFile: 'reports/coverage.xml'
|
cobertura coberturaReportFile: 'reports/coverage.xml'
|
||||||
junit 'reports/**/*.xml'
|
junit 'reports/**/*.xml'
|
||||||
}
|
}
|
||||||
}
|
|
||||||
stage('3.10'){
|
|
||||||
agent{
|
|
||||||
dockerfile {
|
|
||||||
filename 'python310.Dockerfile'
|
|
||||||
dir '.ci'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
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'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user