django-configurations/tox.ini

57 lines
1.2 KiB
INI
Raw Normal View History

[tox]
skipsdist = true
usedevelop = true
minversion = 1.8
whitelist_externals = sphinx-build
envlist =
2019-12-03 11:42:36 +00:00
py36-checkqa,
2019-11-29 01:12:04 +00:00
py{27,35,36,py}-dj111
py{35,36,37,py3}-dj20
py{35,36,37,py3}-dj21
py{35,36,37,38,py3}-dj22
py{36,37,38,py3}-dj{30,master}
2019-12-03 10:51:21 +00:00
[travis]
python =
2.7: py27
3.5: py35
3.6: py36,flake8,readme
3.7: py37
2019-12-03 10:55:03 +00:00
3.8: py38
2019-12-03 10:51:21 +00:00
pypy3: pypy3
[testenv]
2014-12-12 16:26:21 +00:00
usedevelop = true
setenv =
DJANGO_SETTINGS_MODULE = tests.settings.main
DJANGO_CONFIGURATION = Test
COVERAGE_PROCESS_START = {toxinidir}/setup.cfg
deps =
dj111: django>=1.11,<2.0
dj20: django>=2.0a1,<2.1
dj21: django>=2.1a1,<2.2
dj22: django>=2.2a1,<3.0
2019-11-29 01:12:04 +00:00
dj30: django>=3.0a1,<3.1
djmaster: https://github.com/django/django/archive/master.tar.gz#egg=django
py27,pypy: mock
2019-12-03 10:51:21 +00:00
coverage
coverage_enable_subprocess
extras = testing
commands =
python --version
2019-12-03 10:51:21 +00:00
{envbindir}/coverage run {envbindir}/django-cadmin test -v2 {posargs:tests}
coverage combine . tests/docs
coverage report -m --skip-covered
coverage xml
2019-12-03 11:42:36 +00:00
[testenv:py36-checkqa]
commands =
flake8 {toxinidir}
2019-12-03 11:47:25 +00:00
check-manifest -v
python setup.py sdist
twine check dist/*
deps =
flake8
twine
2019-12-03 11:47:25 +00:00
check-manifest