vitrage-specs/tox.ini
zhulingjie c1c43bb1c4 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I2d296e2001912928f1d3380a3b1a8c9e365c324e
2019-04-23 09:07:11 +00:00

35 lines
865 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://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/requirements.txt
commands = sphinx-build -W -E -b html -d doc/build/doctrees doc/source doc/build/html
[testenv:doc8]
basepython = python3
deps = -r{toxinidir}/requirements.txt doc8
commands = doc8 doc/source
[testenv:autobuild]
basepython = python3
whitelist_externals =
sphinx-autobuild
commands =
sphinx-autobuild --watch specs --open-browser doc/source doc/build