Browse Source

Drop py27 job and enable python3 jobs

Change-Id: I37997b86928d3b399ce6b2c15d57dd0168bd5996
changes/95/711395/2
Dong Ma 4 months ago
parent
commit
de4a996811
2 changed files with 9 additions and 21 deletions
  1. +2
    -0
      .zuul.yaml
  2. +7
    -21
      tox.ini

+ 2
- 0
.zuul.yaml View File

@@ -1,4 +1,6 @@
- project:
templates:
- openstack-python3-ussuri-jobs-neutron
post:
jobs:
- networking-zvm-upload-git-mirror


+ 7
- 21
tox.ini View File

@@ -1,9 +1,10 @@
[tox]
minversion = 1.6
envlist = pep8,py27,py36
envlist = pep8,py27,py36,py37,py38
skipsdist = True

[testenv]
whitelist_externals = *
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
@@ -12,29 +13,14 @@ setenv =
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-egit+https://github.com/openstack/neutron@master#egg=neutron
commands = python setup.py testr --slowest --testr-args='{posargs}'

[testenv:pep8]
commands = flake8

[testenv:py27]
whitelist_externals = *
commands = pip install "-egit+https://github.com/openstack/neutron@master#egg=neutron"
cp -r {toxinidir}/neutron/plugins/zvm \
{toxinidir}/.tox/py27/src/neutron/neutron/plugins/
commands = cp -r {toxinidir}/neutron/plugins/zvm \
{toxinidir}/.tox/{envname}/src/neutron/neutron/plugins/
cp -r {toxinidir}/neutron/plugins/ml2/drivers/zvm \
{toxinidir}/.tox/py27/src/neutron/neutron/plugins/ml2/drivers/
python setup.py testr --slowest --testr-args='{posargs}'

[testenv:py36]
whitelist_externals = *
commands = pip install "-egit+https://github.com/openstack/neutron@master#egg=neutron"
cp -r {toxinidir}/neutron/plugins/zvm \
{toxinidir}/.tox/py36/src/neutron/neutron/plugins/
cp -r {toxinidir}/neutron/plugins/ml2/drivers/zvm \
{toxinidir}/.tox/py36/src/neutron/neutron/plugins/ml2/drivers/
{toxinidir}/.tox/{envname}/src/neutron/neutron/plugins/ml2/drivers/
python setup.py testr --slowest --testr-args='{posargs}'

[testenv:pep8]
commands = flake8

[testenv:venv]
commands = {posargs}


Loading…
Cancel
Save