2015-07-19 03:18:49 +00:00
|
|
|
[tox]
|
2015-07-20 08:10:56 +00:00
|
|
|
envlist = py27,lint,docs
|
2015-07-19 03:18:49 +00:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv =
|
|
|
|
PYTHONPATH={toxinidir}/readthedocs:{toxinidir}
|
|
|
|
DJANGO_SETTINGS_MODULE=settings.test
|
2015-07-20 08:07:40 +00:00
|
|
|
LANG=C
|
2015-07-27 19:39:23 +00:00
|
|
|
DJANGO_SETTINGS_SKIP_LOCAL=True
|
2015-07-19 03:18:49 +00:00
|
|
|
deps = -r{toxinidir}/requirements/pip.txt
|
|
|
|
changedir = {toxinidir}/readthedocs
|
|
|
|
commands =
|
2015-07-19 07:03:55 +00:00
|
|
|
py.test {posargs}
|
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
changedir = {toxinidir}/docs
|
|
|
|
commands =
|
|
|
|
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|
2015-07-19 03:18:49 +00:00
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
deps =
|
2015-07-19 07:03:55 +00:00
|
|
|
{[testenv]deps}
|
2015-08-05 18:32:23 +00:00
|
|
|
maxcdn
|
2015-11-30 22:28:02 +00:00
|
|
|
astroid<1.4
|
|
|
|
pylint<1.5
|
2015-07-19 03:18:49 +00:00
|
|
|
prospector
|
2015-12-03 23:05:55 +00:00
|
|
|
pylint-django<0.7
|
2016-05-04 16:21:39 +00:00
|
|
|
pyflakes<1.2.0
|
2015-07-19 03:18:49 +00:00
|
|
|
commands =
|
|
|
|
prospector \
|
|
|
|
--profile-path={toxinidir} \
|
|
|
|
--profile=prospector \
|
|
|
|
--die-on-tool-error
|