mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-17 10:13:56 -05:00
commit
81d92fb4ad
@ -11,15 +11,15 @@ matrix:
|
|||||||
- python: 3.4
|
- python: 3.4
|
||||||
- python: 3.5
|
- python: 3.5
|
||||||
- python: 3.6
|
- python: 3.6
|
||||||
- python: 3.6
|
|
||||||
|
|
||||||
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
|
||||||
|
@ -40,7 +40,7 @@ extensions = [
|
|||||||
'sphinx.ext.autodoc',
|
'sphinx.ext.autodoc',
|
||||||
'sphinx.ext.intersphinx',
|
'sphinx.ext.intersphinx',
|
||||||
'sphinx.ext.todo',
|
'sphinx.ext.todo',
|
||||||
'sphinx.ext.pngmath',
|
'sphinx.ext.imgmath',
|
||||||
'sphinx.ext.viewcode',
|
'sphinx.ext.viewcode',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[pycodestyle]
|
[pycodestyle]
|
||||||
exclude = migrations, paperless/settings.py
|
exclude = migrations, paperless/settings.py, .tox
|
||||||
|
|
||||||
|
|
||||||
[tool:pytest]
|
[tool:pytest]
|
||||||
|
22
src/tox.ini
Normal file
22
src/tox.ini
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# Tox (http://tox.testrun.org/) is a tool for running tests
|
||||||
|
# in multiple virtualenvs. This configuration file will run the
|
||||||
|
# test suite on all supported python versions. To use it, "pip install tox"
|
||||||
|
# and then run "tox" from this directory.
|
||||||
|
|
||||||
|
[tox]
|
||||||
|
skipsdist = True
|
||||||
|
envlist = py34, py35, py36, pycodestyle, doc
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
commands = pytest
|
||||||
|
deps = -r{toxinidir}/../requirements.txt
|
||||||
|
|
||||||
|
[testenv:pycodestyle]
|
||||||
|
commands=pycodestyle
|
||||||
|
deps=pycodestyle
|
||||||
|
|
||||||
|
[testenv:doc]
|
||||||
|
deps =
|
||||||
|
-r{toxinidir}/../requirements.txt
|
||||||
|
sphinx
|
||||||
|
commands=sphinx-build -b html ../docs ../docs/_build -W
|
Loading…
x
Reference in New Issue
Block a user