Files
openstack-helm-images/tox.ini
Jean-Philippe Evrard 2803e7c16a Initial commit
This adds the initial files and jobs for the repository.
It is manually based on the openstack cookiecutter,
removing all the python related parts we do not need.

Change-Id: Ia3e1d0ca1eaee363b8f864de16665923d99e1dbe
2018-11-26 14:04:40 +00:00

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