Drop py27 job and enable python3 jobs

Change-Id: I37997b86928d3b399ce6b2c15d57dd0168bd5996
changes/95/711395/2
Dong Ma 3 years ago
parent dce432b27d
commit de4a996811
  1. 2
      .zuul.yaml
  2. 28
      tox.ini

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

@ -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