divingbell/tox.ini
Roman Gorshunov c53ab7e423 Set up publishing of docs
Set up publishing of docs to the readthedocs.

Change-Id: Id3ceba960d6b1cf441b13bfc875b17fb0b09de2c
2018-10-04 16:38:36 +00:00

24 lines
644 B
INI

[tox]
minversion = 2.3.1
skipsdist = True
envlist = docs
[testenv]
usedevelop = True
whitelist_externals = rm
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY PBR_VERSION
setenv = VIRTUAL_ENV={envdir}
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
commands =
[testenv:venv]
commands = {posargs}
[testenv:docs]
basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands =
rm -rf doc/build
sphinx-build -W -b html doc/source doc/build/html