Compare commits
12 Commits
master
...
feature/je
Author | SHA1 | Date | |
---|---|---|---|
|
0788718c31 | ||
|
4f5c4ebe8f | ||
|
ae2a8e54ef | ||
|
d9be100c1f | ||
|
9d1dc7320f | ||
|
d11ab71b7e | ||
|
59037e1a50 | ||
|
a19b99be82 | ||
|
f7e7558338 | ||
|
d57648f9d6 | ||
|
d24f580bf0 | ||
|
916973c3e8 |
7
.ci/python310.Dockerfile
Normal file
7
.ci/python310.Dockerfile
Normal file
@ -0,0 +1,7 @@
|
||||
FROM python:3.9
|
||||
|
||||
RUN adduser --uid 1000 jenkins
|
||||
|
||||
USER jenkins
|
||||
|
||||
RUN mkdir -p /home/jenkins/.cache/pip
|
7
.ci/python36.Dockerfile
Normal file
7
.ci/python36.Dockerfile
Normal file
@ -0,0 +1,7 @@
|
||||
FROM python:3.6
|
||||
|
||||
RUN adduser --uid 1000 jenkins
|
||||
|
||||
USER jenkins
|
||||
|
||||
RUN mkdir -p /home/jenkins/.cache/pip
|
41
Jenkinsfile
vendored
Normal file
41
Jenkinsfile
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
pipeline {
|
||||
agent none
|
||||
stages {
|
||||
stage('Unit Tests') {
|
||||
parallel {
|
||||
stage('3.6'){
|
||||
agent{
|
||||
dockerfile {
|
||||
filename 'python36.Dockerfile'
|
||||
dir '.ci'
|
||||
args '-v pip-cache:/home/jenkins/.cache/pip'
|
||||
}
|
||||
}
|
||||
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'
|
||||
}
|
||||
}
|
||||
stage('3.10'){
|
||||
agent{
|
||||
dockerfile {
|
||||
filename 'python310.Dockerfile'
|
||||
dir '.ci'
|
||||
args '-v pip-cache:/home/jenkins/.cache/pip'
|
||||
}
|
||||
}
|
||||
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