summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test-requirements.txt1
-rw-r--r--tox.ini7
2 files changed, 7 insertions, 1 deletions
diff --git a/test-requirements.txt b/test-requirements.txt
index 1874bb1f6..9fe4bc749 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -10,3 +10,4 @@ mock==1.3.0
nose==1.3.7
flake8>=2.5.4,<2.6.0 # MIT
pylint==1.4.5 # GPLv2
+sphinx!=1.6.1,>=1.5.1 # BSD
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 =