40 lines
858 B
INI
40 lines
858 B
INI
[tox]
|
|
minversion = 2.0
|
|
envlist = docs
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
install_command =
|
|
pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
setenv =
|
|
PYTHONUNBUFFERED=1
|
|
VIRTUAL_ENV={envdir}
|
|
commands =
|
|
/usr/bin/find . -type f -name "*.pyc" -delete
|
|
passenv =
|
|
*_proxy
|
|
*_PROXY
|
|
whitelist_externals =
|
|
bash
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
bash -c "rm -rf doc/build"
|
|
doc8 doc
|
|
sphinx-build -b html doc/source doc/build/html
|
|
|
|
[doc8]
|
|
extensions = .rst
|
|
|
|
[testenv:releasenotes]
|
|
basepython = python3
|
|
deps = {[testenv:docs]deps}
|
|
commands =
|
|
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|