summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tox.ini12
1 files changed, 11 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 42469da..55e85c9 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,6 @@
[tox]
-envlist = py27, py34, py35, py36, py37, pypy, pypy3
+envlist = py27, py34, py35, py36, py37, pypy, pypy3,
+ docs
[testenv]
usedevelop = True
@@ -10,3 +11,12 @@ deps =
pytest-cov
commands =
py.test {posargs}
+
+[testenv:docs]
+# pin to 3.5 to match what RTD uses
+basepython = python3.5
+whitelist_externals = make
+commands =
+ make -C docs html epub BUILDDIR={envdir} "SPHINXOPTS=-W -E"
+extras =
+ docs