Browse Source

Test that doc building + readme are correct

Currently you can see at [supervisor's pypi page](https://pypi.python.org/pypi/supervisor) that the long_description has failed to render.

This additional test env will test that
A) the docs build correctly
B) The readme can be rendered correctly

Very useful for making sure your readme changes don't bork anything (like pypi rendering).
Matt Iversen 9 years ago
parent
commit
8911249648
1 changed files with 9 additions and 1 deletions
  1. 9 1
      tox.ini

+ 9 - 1
tox.ini

@@ -1,6 +1,6 @@
 [tox]
 [tox]
 envlist =
 envlist =
-    cover,cover3,py26,py27,py32,py33,py34,py35,pypy
+    cover,cover3,py26,py27,py32,py33,py34,py35,pypy,docs
 
 
 [testenv]
 [testenv]
 deps =
 deps =
@@ -24,3 +24,11 @@ commands =
     py.test --cov=supervisor --cov-report=term-missing --cov-report=xml {posargs}
     py.test --cov=supervisor --cov-report=term-missing --cov-report=xml {posargs}
 deps =
 deps =
     {[testenv:cover]deps}
     {[testenv:cover]deps}
+
+[testenv:docs]
+deps =
+    sphinx
+    readme
+commands =
+    sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
+    python setup.py check -m -r -s