Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Add documentation testing

Ovvea1260c2ce3b
diff --git a/.travis.yml b/.travis.yml
index 92ee7eddb..59b2a7c5f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,11 +15,12 @@ matrix:
install:
- pip install --requirement requirements.txt
-
+ - pip install sphinx
script:
- cd src/
- pytest --cov
- pycodestyle
+ - sphinx-build -b html docs docs/_build -W
after_success:
- coveralls
diff --git a/src/setup.cfg b/src/setup.cfg
index e70395525..1112934c0 100644
--- a/src/setup.cfg
+++ b/src/setup.cfg
@@ -1,5 +1,5 @@
[pycodestyle]
-exclude = migrations, paperless/settings.py
+exclude = migrations, paperless/settings.py, .tox
[tool:pytest]
diff --git a/src/tox.ini b/src/tox.ini
index 4ea231f46..98e44e063 100644
--- a/src/tox.ini
+++ b/src/tox.ini
@@ -5,7 +5,7 @@
[tox]
skipsdist = True
-envlist = py34, py35, py36, pycodestyle
+envlist = py34, py35, py36, pycodestyle, doc
[testenv]
commands = pytest
@@ -15,8 +15,8 @@ deps = -r{toxinidir}/../requirements.txt
commands=pycodestyle
deps=pycodestyle
-[pycodestyle]
-exclude=
- .tox,
- migrations,
- paperless/settings.py
+[testenv:doc]
+deps =
+ -r{toxinidir}/../requirements.txt
+ sphinx
+commands=sphinx-build -b html ../docs ../docs/_build -W