tripleo-docs/tox.ini
James Slagle 6151147daf Update tox.ini for tripleo-docs
Removes the pep8 and bindep tox environments. pep8 did not run
successfully as there is no test-requirements.txt file, and there is
nothing to test anyway. bindep also has nothing to test, so it's also
removed.

The deploy-guide tox environment is added to the default list so that
just running "tox" results in a full build of the documentation
including the user and deploy guide.

Change-Id: I1990556fec47905d2e137b51bcaefd15fe597dea
2021-05-04 10:51:19 -04:00

36 lines
900 B
INI

[tox]
minversion = 2.0
skipsdist = True
envlist = docs,deploy-guide
[testenv]
basepython = python3
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
[testenv:venv]
commands = {posargs}
[testenv:docs]
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -a -E -W -d doc/build/doctrees --keep-going -b html doc/source doc/build/html
[testenv:pdf-docs]
whitelist_externals = make
description =
Build PDF documentation.
envdir = {toxworkdir}/docs
deps = {[testenv:docs]deps}
commands =
sphinx-build --keep-going -b latex doc/source doc/build/pdf
make -C doc/build/pdf
[testenv:deploy-guide]
deps = {[testenv:docs]deps}
commands = sphinx-build -a -E -W -d deploy-guide/build/doctrees --keep-going -b html deploy-guide/source deploy-guide/build/html