readthedocs.org/tox.ini

51 lines
1.1 KiB
INI
Raw Normal View History

[tox]
2017-06-01 19:07:51 +00:00
envlist = py{27,36},lint,docs
skipsdist = True
2017-06-14 22:51:00 +00:00
[travis]
python =
2.7: py27
3.6: py36
[testenv]
setenv =
PYTHONPATH={toxinidir}/readthedocs:{toxinidir}
DJANGO_SETTINGS_MODULE=readthedocs.settings.test
2015-07-20 08:07:40 +00:00
LANG=C
DJANGO_SETTINGS_SKIP_LOCAL=True
deps = -r{toxinidir}/requirements/testing.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
[testenv:lint]
deps = -r{toxinidir}/requirements/lint.txt
commands =
prospector \
--profile-path={toxinidir} \
--profile=prospector-more \
--die-on-tool-error {posargs}
prospector \
--profile-path={toxinidir} \
--profile=prospector \
--die-on-tool-error {posargs}
[testenv:eslint]
commands =
gulp lint
[testenv:coverage]
deps =
-r{toxinidir}/requirements/pip.txt
2017-05-23 18:26:23 +00:00
pytest-cov
whitelist_externals = echo
commands =
py.test --disable-pytest-warnings \
--cov-report=term --cov-report=html --cov=. {posargs}
echo Annotated HTML coverage report is in {toxinidir}/readthedocs/htmlcov/index.html