tox: build py3 (#36515)
This commit is contained in:
parent
a87a181371
commit
cb17e126b7
|
@ -4,9 +4,14 @@ pipeline {
|
||||||
agent any
|
agent any
|
||||||
options { disableConcurrentBuilds() }
|
options { disableConcurrentBuilds() }
|
||||||
stages {
|
stages {
|
||||||
|
stage('Unit Tests (Python 2)') {
|
||||||
|
steps {
|
||||||
|
sh 'tox -r -e py2'
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Unit Tests') {
|
stage('Unit Tests') {
|
||||||
steps {
|
steps {
|
||||||
sh 'tox -r'
|
sh 'tox -r -e py3-pylint-coverage'
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
|
|
5
tox.ini
5
tox.ini
|
@ -1,6 +1,6 @@
|
||||||
[tox]
|
[tox]
|
||||||
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/wcs/{env:BRANCH_NAME:}
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/wcs/{env:BRANCH_NAME:}
|
||||||
envlist = py2-pylint-coverage
|
envlist = py3-pylint-coverage,py2
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
sitepackages = true
|
sitepackages = true
|
||||||
|
@ -29,6 +29,7 @@ deps =
|
||||||
django-ratelimit<3
|
django-ratelimit<3
|
||||||
pyproj
|
pyproj
|
||||||
pylint<1.8
|
pylint<1.8
|
||||||
|
py3: Quixote>=3.0
|
||||||
commands =
|
commands =
|
||||||
py.test {env:COVERAGE:} {posargs:tests/}
|
py.test -v {env:COVERAGE:} {posargs:tests/}
|
||||||
pylint: ./pylint.sh wcs/
|
pylint: ./pylint.sh wcs/
|
||||||
|
|
Loading…
Reference in New Issue