소스 검색

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 년 전
부모
커밋
8911249648
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 1
      tox.ini

+ 9 - 1
tox.ini

@@ -1,6 +1,6 @@
 [tox]
 envlist =
-    cover,cover3,py26,py27,py32,py33,py34,py35,pypy
+    cover,cover3,py26,py27,py32,py33,py34,py35,pypy,docs
 
 [testenv]
 deps =
@@ -24,3 +24,11 @@ commands =
     py.test --cov=supervisor --cov-report=term-missing --cov-report=xml {posargs}
 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