ironic-specs/tox.ini

36 lines
821 B
INI

[tox]
minversion = 3.18.0
envlist = linters,docs
skipsdist = true
[testenv]
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
stestr run {posargs}
doc8 priorities/ specs/ doc/source README.rst
[testenv:venv]
commands = {posargs:}
[testenv:docs]
sitepackages = False
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
commands =
sphinx-build -b html doc/source doc/build/html
[testenv:pdf-docs]
allowlist_externals = make
sitepackages = False
deps = {[testenv:docs]deps}
commands =
sphinx-build -b latex doc/source doc/build/pdf
make -C doc/build/pdf