Skip to content

Commit

Permalink
Add doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Oct 11, 2015
1 parent 6eff221 commit 3d466d4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ env:
- TEST='1'
- TEST='pep8'
- TEST='isort'
- TEST='docs'

# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
Expand All @@ -42,18 +43,26 @@ matrix:
env: TEST='pep8'
- python: 2.6
env: TEST='isort'
- python: 2.6
env: TEST='docs'
- python: 2.7
env: TEST='pep8'
- python: 2.7
env: TEST='isort'
- python: 2.7
env: TEST='docs'
- python: 3.3
env: TEST='pep8'
- python: 3.3
env: TEST='isort'
- python: 3.4
env: TEST='docs'
- python: 3.4
env: TEST='pep8'
- python: 3.4
env: TEST='isort'
- python: 3.4
env: TEST='docs'

notifications:
webhooks: https://ring.nephila.it/packages/hook/
12 changes: 11 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
downloadcache = {toxworkdir}/cache
envlist = pep8,isort,py{26,27,33,34,35}
envlist = pep8,isort,py{26,27,33,34,35},docs
passenv = LANG

[testenv]
Expand All @@ -24,3 +24,13 @@ skip_install = true
deps = isort
commands = isort -c -rc -df djangocms_installer
skip_install = true

[testenv:docs]
deps =
sphinx
sphinx-rtd-theme
-rrequirements-test.txt
changedir=docs
skip_install = true
commands=
sphinx-build -W -b html -d {envtmpdir}/doctrees . {toxinidir}/docs/_build/html

0 comments on commit 3d466d4

Please sign in to comment.