mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-17 10:13:56 -05:00
Add documentation testing
This commit is contained in:
parent
7040d13f76
commit
ea1260c2ce
@ -15,11 +15,12 @@ matrix:
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install --requirement requirements.txt
|
- pip install --requirement requirements.txt
|
||||||
|
- pip install sphinx
|
||||||
script:
|
script:
|
||||||
- cd src/
|
- cd src/
|
||||||
- pytest --cov
|
- pytest --cov
|
||||||
- pycodestyle
|
- pycodestyle
|
||||||
|
- sphinx-build -b html docs docs/_build -W
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- coveralls
|
- coveralls
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[pycodestyle]
|
[pycodestyle]
|
||||||
exclude = migrations, paperless/settings.py
|
exclude = migrations, paperless/settings.py, .tox
|
||||||
|
|
||||||
|
|
||||||
[tool:pytest]
|
[tool:pytest]
|
||||||
|
12
src/tox.ini
12
src/tox.ini
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
envlist = py34, py35, py36, pycodestyle
|
envlist = py34, py35, py36, pycodestyle, doc
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
commands = pytest
|
commands = pytest
|
||||||
@ -15,8 +15,8 @@ deps = -r{toxinidir}/../requirements.txt
|
|||||||
commands=pycodestyle
|
commands=pycodestyle
|
||||||
deps=pycodestyle
|
deps=pycodestyle
|
||||||
|
|
||||||
[pycodestyle]
|
[testenv:doc]
|
||||||
exclude=
|
deps =
|
||||||
.tox,
|
-r{toxinidir}/../requirements.txt
|
||||||
migrations,
|
sphinx
|
||||||
paperless/settings.py
|
commands=sphinx-build -b html ../docs ../docs/_build -W
|
||||||
|
Loading…
x
Reference in New Issue
Block a user