openstack-helm-images/tox.ini

42 lines
860 B
INI

[tox]
minversion = 3.1
envlist = docs
skipsdist = True
ignore_basepython_conflict = True
[testenv]
basepython = python3
setenv =
PYTHONUNBUFFERED=1
VIRTUAL_ENV={envdir}
commands =
/usr/bin/find . -type f -name "*.pyc" -delete
passenv =
*_proxy
*_PROXY
whitelist_externals =
bash
[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 =
bash -c "rm -rf doc/build"
doc8 doc
sphinx-build -W --keep-going -b html doc/source doc/build/html
[doc8]
extensions = .rst
[testenv:releasenotes]
whitelist_externals =
rm
deps = {[testenv:docs]deps}
commands =
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html