Test docs with tox.
This commit is contained in:
parent
2fa970fc5a
commit
eca5b06760
10
tox.ini
10
tox.ini
|
@ -24,6 +24,16 @@ deps =
|
||||||
commands =
|
commands =
|
||||||
pytest --flake8 --cov=oidc_provider {posargs}
|
pytest --flake8 --cov=oidc_provider {posargs}
|
||||||
|
|
||||||
|
[testenv:docs]
|
||||||
|
basepython = python2.7
|
||||||
|
changedir = docs
|
||||||
|
deps =
|
||||||
|
sphinx
|
||||||
|
sphinx_rtd_theme
|
||||||
|
commands =
|
||||||
|
mkdir -p _static/
|
||||||
|
sphinx-build -v -W -b html -d {envtmpdir}/doctrees -D html_static_path="_static" . {envtmpdir}/html
|
||||||
|
|
||||||
[pytest]
|
[pytest]
|
||||||
DJANGO_SETTINGS_MODULE = oidc_provider.tests.settings
|
DJANGO_SETTINGS_MODULE = oidc_provider.tests.settings
|
||||||
python_files = test_*.py
|
python_files = test_*.py
|
||||||
|
|
Loading…
Reference in a new issue