prototorch_models/Jenkinsfile

124 lines
2.7 KiB
Plaintext
Raw Normal View History

2021-11-04 11:04:19 +01:00
pipeline {
agent none
stages {
2021-11-05 11:56:59 +01:00
stage('Unit Tests') {
stage('3.10') {
agent {
dockerfile {
filename 'python310.Dockerfile'
dir '.ci'
}
2021-11-04 17:08:08 +01:00
2021-11-05 11:56:59 +01:00
}
steps {
sh 'pip install pip --upgrade --progress-bar off'
sh 'pip install .[all] --progress-bar off'
sh 'pytest -v --junitxml=reports/result.xml'
}
}
post {
always {
junit 'reports/**/*.xml'
}
}
2021-11-04 17:08:08 +01:00
}
2021-11-05 11:56:59 +01:00
stage('CPU Examples') {
2021-11-04 11:17:33 +01:00
parallel {
2021-11-04 16:36:45 +01:00
stage('3.10') {
2021-11-04 15:41:38 +01:00
agent {
dockerfile {
filename 'python310.Dockerfile'
dir '.ci'
}
2021-11-04 16:36:45 +01:00
2021-11-04 15:41:38 +01:00
}
steps {
sh 'pip install pip --upgrade --progress-bar off'
sh 'pip install .[all] --progress-bar off'
sh './tests/test_examples.sh examples'
}
}
2021-11-04 16:36:45 +01:00
stage('3.9') {
2021-11-04 11:17:33 +01:00
agent {
2021-11-04 11:58:21 +01:00
dockerfile {
filename 'python39.Dockerfile'
dir '.ci'
2021-11-04 11:17:33 +01:00
}
2021-11-04 16:36:45 +01:00
2021-11-04 11:17:33 +01:00
}
steps {
sh 'pip install pip --upgrade --progress-bar off'
sh 'pip install .[all] --progress-bar off'
sh './tests/test_examples.sh examples'
}
}
2021-11-04 16:36:45 +01:00
stage('3.8') {
2021-11-04 11:17:33 +01:00
agent {
2021-11-04 11:58:21 +01:00
dockerfile {
filename 'python38.Dockerfile'
dir '.ci'
2021-11-04 11:17:33 +01:00
}
2021-11-04 16:36:45 +01:00
2021-11-04 11:17:33 +01:00
}
steps {
sh 'pip install pip --upgrade --progress-bar off'
sh 'pip install .[all] --progress-bar off'
sh './tests/test_examples.sh examples'
}
2021-11-04 11:04:19 +01:00
}
2021-11-04 16:36:45 +01:00
stage('3.7') {
agent {
dockerfile {
filename 'python37.Dockerfile'
dir '.ci'
}
2021-11-04 16:36:45 +01:00
}
steps {
sh 'pip install pip --upgrade --progress-bar off'
sh 'pip install .[all] --progress-bar off'
sh './tests/test_examples.sh examples'
}
}
2021-11-04 16:36:45 +01:00
stage('3.6') {
agent {
dockerfile {
filename 'python36.Dockerfile'
dir '.ci'
}
2021-11-04 16:36:45 +01:00
}
steps {
sh 'pip install pip --upgrade --progress-bar off'
sh 'pip install .[all] --progress-bar off'
sh './tests/test_examples.sh examples'
}
}
2021-11-04 16:36:45 +01:00
2021-11-04 11:04:19 +01:00
}
}
2021-11-04 16:36:45 +01:00
2021-11-05 11:56:59 +01:00
stage('GPU Examples') {
agent {
dockerfile {
filename 'gpu.Dockerfile'
dir '.ci'
args '--gpus 1'
}
}
steps {
sh 'pip install -U pip --progress-bar off'
sh 'pip install .[all] --progress-bar off'
sh './tests/test_examples.sh examples --gpu'
}
}
2021-11-04 16:36:45 +01:00
2021-11-04 11:04:19 +01:00
}
2021-11-04 17:08:08 +01:00
}