Skip to content

Commit df96ea4

Browse files
committed
qa: add docs tox env (using -W) and use it on Travis
1 parent 8d548e7 commit df96ea4

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
env: TOXENV=pypy3-dj110-sqlite
3333

3434
- python: 3.6
35-
env: TOXENV=checkqa
35+
env: TOXENV=checkqa,docs
3636

3737
- stage: PyPI Release
3838
if: tag IS present

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ def read(fname):
3131
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
3232
setup_requires=['setuptools_scm>=1.11.1'],
3333
install_requires=['pytest>=3.6'],
34+
extras_require={
35+
'docs': [
36+
'sphinx',
37+
'Flask-Sphinx-Themes',
38+
]
39+
},
3440
classifiers=['Development Status :: 5 - Production/Stable',
3541
'Framework :: Django',
3642
'Framework :: Django :: 1.8',

tox.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ deps =
5959
commands =
6060
doc8 docs/
6161

62+
[testenv:docs]
63+
deps =
64+
extras = docs
65+
commands = sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html
66+
6267
[testenv:readme]
6368
basepython = python3.5
6469
deps =

0 commit comments

Comments
 (0)