zuul: use python3 for coverage gate

The zuul gates do not support Python 2.7 and latest
setuptools, switching to Python 3.

Change-Id: Id1a7c16b988a8e88f7650d4e13ad59775c1c76b3
This commit is contained in:
Adrian Vladu 2020-01-13 17:03:11 +02:00
parent 31f49e52a0
commit d6506b1fba

View File

@ -1,9 +1,10 @@
[tox]
minversion = 1.6
envlist = py27,py33,pep8
envlist = docs,py37,pep8
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -U --force-reinstall {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
@ -16,7 +17,7 @@ commands = python setup.py testr --testr-args='{posargs}'
commands = flake8 {posargs}
[testenv:cover]
basepython = python2.7
basepython = python3
setenv =
{[testenv]setenv}
PYTHON=coverage run --source cloudbaseinit --parallel-mode