2c5f68fe50
We want to default to running all tox environments under python 3, so set the basepython value in each environment. We do not want to specify a minor version number, because we do not want to have to update the file every time we upgrade python. We do not want to set the override once in testenv, because that breaks the more specific versions used in default environments like py35 and py36. Change-Id: I7428f118c92f6a4c67bdb2c855df1a933587518b
34 lines
895 B
INI
34 lines
895 B
INI
[tox]
|
|
minversion = 2.0
|
|
envlist = checkbuild
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[testenv:checkbuild]
|
|
basepython = python3
|
|
setenv =
|
|
IGNORE_GIT=1
|
|
commands =
|
|
rm -rf {envdir}/horizon
|
|
git clone https://git.openstack.org/openstack/horizon {envdir}/horizon
|
|
rm -rf {envdir}/cafe-ui
|
|
cookiecutter --no-input --output-dir {envdir} {toxinidir}
|
|
# To pass {postargs} for running `tox -edocs` in generated plugin,
|
|
# run `tox -- -edocs` in ui-cookiecutter.
|
|
tox --workdir {envdir}/cafe-ui/.tox -c {envdir}/cafe-ui/tox.ini {posargs}
|
|
whitelist_externals =
|
|
git
|
|
rm
|
|
tox
|