Skip to content

Commit

Permalink
Test docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdavis committed Jun 30, 2018
1 parent 0a649a5 commit 91d57c1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ matrix:
env: TOXENV=py27-test
- python: 3.4
env: TOXENV=py34-test
- python: 3.4
env: TOXENV=py34-docs
- python: 3.4
env: TOXENV=py34-doctest

Expand Down
24 changes: 19 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
[tox]
envlist =
{py26,py27,py33,py34}-test,
py34-docs
py34-doctest

[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/mockupdb
commands =
python setup.py test


[testenv:py34-docs]
changedir =
docs
commands =
sphinx-build -E -T -b html . _build/html

deps =
sphinx

[testenv:py34-doctest]
changedir =
doctest: docs
docs
commands =
test: python setup.py test
doctest: sphinx-build -E -n -b doctest . {envtmpdir}/doctest
sphinx-build -E -n -b doctest . {envtmpdir}/doctest

deps =
doctest: sphinx
doctest: pymongo>=3
sphinx
pymongo>=3

passenv = DISTUTILS_USE_SDK MSSdk INCLUDE LIB

0 comments on commit 91d57c1

Please sign in to comment.