From cb7c5c464adb4bf302e50cac7c989afe54640e47 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sun, 21 May 2017 12:27:24 +0200 Subject: Generate api doc when running tox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I78b18981d9f916e6174d44c6280706e404c7c9f2 Signed-off-by: Cédric Ollivier --- tox.ini | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index db4f89202..c59e46c37 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,8 @@ [tox] -envlist = pep8,pylint,py27 +envlist = docs,pep8,pylint,py27 [testenv] +usedevelop = True deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt @@ -13,6 +14,10 @@ commands = nosetests --with-xunit \ --cover-html \ functest/tests/unit +[testenv:docs] +basepython = python2.7 +commands = sphinx-build -b html docs/api/ docs/api/_build + [testenv:pep8] basepython = python2.7 deps = -- cgit 1.2.3-korg