diff options
author | Bernat Gabor <jokerjokerer@gmail.com> | 2017-12-06 23:50:52 +0000 |
---|---|---|
committer | Bernat Gabor <jokerjokerer@gmail.com> | 2017-12-07 00:15:47 +0000 |
commit | 04254e3c4718b9b2ee96fa38a5d67c8104989592 (patch) | |
tree | 0985a6ce0cb0eba50815a1fd3463579758a095bc /tox.ini | |
parent | 660a88ef71a3619d39d23fd2bd0be44a9c82256c (diff) | |
download | dateutil-04254e3c4718b9b2ee96fa38a5d67c8104989592.tar.gz |
add document generation to tox, and trigger automatically at CI (also check links in documentation to avoid having dangling pointers to the internet)
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -6,8 +6,9 @@ envlist = py27, py36, pypy, pypy3, - coverage -minversion = 2.7.0 + coverage, + docs +minversion = 2.9.0 skip_missing_interpreters = true [testenv] @@ -43,8 +44,15 @@ commands = python -m pip list --format=columns [coverage:run] source = dateutil -omit = dateutil/test* [coverage:report] -skip_covered=True -show_missing=True +skip_covered = True +show_missing = True + +[testenv:docs] +description = invoke sphinx-build to build the HTML docs, check that URIs are valid +basepython = python3.6 +deps = sphinx >= 1.6.3, < 2 + {[testenv]deps} +commands = sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" {posargs:-W --color -bhtml} + sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" {posargs:-W --color -blinkcheck} |