vitrage-specs/tox.ini
Kim Bao Long 6bba4e26bd Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: Icbd55a9b4a5c28ce24e7dcd21b37824760430d40
2018-11-02 11:46:52 +07:00

33 lines
794 B
INI

[tox]
minversion = 2.0
envlist = docs,py27
skipsdist = True
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
commands = stestr run --slowest {posargs}
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:docs]
basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/requirements.txt
commands = sphinx-build -b html doc/source doc/build/html
[testenv:doc8]
deps = -r{toxinidir}/requirements.txt doc8
commands = doc8 doc/source
[testenv:autobuild]
whitelist_externals =
sphinx-autobuild
commands =
sphinx-autobuild --watch specs --open-browser doc/source doc/build