readthedocs.org/tox.ini

74 lines
1.9 KiB
INI
Raw Permalink Normal View History

[tox]
minversion=2.9.0
2019-01-03 15:42:58 +00:00
envlist = py36,lint,docs
skipsdist = True
2017-06-14 22:51:00 +00:00
[travis]
python =
2018-10-19 05:52:00 +00:00
3.6: py36, codecov
[testenv]
description = run test suite for the application with {basepython}
setenv =
PYTHONPATH={toxinidir}/readthedocs:{toxinidir}
DJANGO_SETTINGS_MODULE=readthedocs.settings.test
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
2018-09-28 16:59:33 +00:00
DJANGO_SETTINGS_SKIP_LOCAL=True
2018-10-19 05:52:00 +00:00
passenv = CI TRAVIS TRAVIS_*
deps = -r{toxinidir}/requirements/testing.txt
changedir = {toxinidir}/readthedocs
commands =
2018-09-05 14:45:26 +00:00
py.test --cov-report= --cov-config {toxinidir}/.coveragerc --cov=. {posargs}
2015-07-19 07:03:55 +00:00
[testenv:docs]
description = build readthedocs documentation
2015-07-19 07:03:55 +00:00
changedir = {toxinidir}/docs
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
2018-10-31 16:11:15 +00:00
[testenv:migrations]
description = check for missing migrations
changedir = {toxinidir}
commands =
./manage.py makemigrations --check --dry-run
2018-02-21 17:27:10 +00:00
[testenv:docs-lint]
2018-05-23 04:27:42 +00:00
description = run linter (rstcheck) to ensure there aren't errors on our docs
2018-02-21 18:24:40 +00:00
deps = -r{toxinidir}/requirements/docs-lint.txt
2018-02-21 17:27:10 +00:00
changedir = {toxinidir}/docs
commands =
2018-02-24 23:17:03 +00:00
rstcheck -r .
2018-02-21 17:27:10 +00:00
[testenv:lint]
description = run linter (prospector) to ensure the source code corresponds to our coding standards
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]
description = run the JavaScript linter (requires `npm install`)
commands =
npm run lint
[testenv:coverage]
2018-09-05 16:22:42 +00:00
description = shows the coverage report
2018-09-05 14:45:26 +00:00
deps = coverage
whitelist_externals = echo
commands =
2018-10-19 05:52:00 +00:00
coverage report --show-missing
coverage html
echo Annotated HTML coverage report is in {toxinidir}/readthedocs/htmlcov/index.html
2018-10-19 05:52:00 +00:00
[testenv:codecov]
description = upload coverage report
deps = codecov
commands = codecov