stacklight-integration-tests/tox.ini
Simon Pasquier c08788f393 Generate documentation automatically
This change adds a new tox target to generate the documentation from
the code. It also modifies the prepare_env.sh script so it doesn't try
to recreate everything when the virtual environment already exists.

Change-Id: Ia3ef1ec843ecfde83219cd6d5a3193b36bbf5371
2016-05-20 16:49:07 +02:00

28 lines
551 B
INI

[tox]
minversion = 1.6
skipsdist = True
envlist = pep8,docs
[testenv:pep8]
deps = hacking
commands = flake8
distribute = false
[flake8]
filename=*.py
ignore = H405, H703
show-source = true
exclude = .venv,.git,.tox,dist,doc,*egg,*lib/python*,build,releasenotes,tmp,utils/fuel-qa-builder/venv*
max-complexity=25
[testenv:docs]
changedir = doc
setenv=
VENV_PATH={envdir}
deps =
-r{toxinidir}/requirements.txt
sphinx
commands =
{toxinidir}/utils/fuel-qa-builder/prepare_env.sh
sphinx-build -b html -d _build/doctrees . _build/html