django-dbtemplates/tox.ini

57 lines
1.1 KiB
INI
Raw Normal View History

[tox]
skipsdist = True
usedevelop = True
minversion = 1.8
envlist =
flake8-py{27,37},
twine-check-py{27,37},
2017-11-22 14:43:19 +00:00
py{27,34,35,36}-dj111
2018-10-01 07:51:11 +00:00
py{34,35,36,37}-dj20
py{35,36,37}-dj21
[testenv]
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
2017-11-22 14:43:19 +00:00
py36: python3.6
2018-10-01 07:51:11 +00:00
py37: python3.7
usedevelop = true
setenv =
DJANGO_SETTINGS_MODULE = dbtemplates.test_settings
deps =
2018-10-01 07:51:11 +00:00
-r requirements/tests.txt
2017-11-22 14:43:19 +00:00
dj111: Django<2.0
dj20: Django<2.1
2018-10-01 07:51:11 +00:00
dj21: Django<2.2
djmaster: https://github.com/django/django/archive/master.tar.gz#egg=django
commands =
python --version
coverage run {envbindir}/django-admin.py test -v2 {posargs:dbtemplates}
coverage report
[testenv:twine-check-py27]
commands =
python setup.py sdist bdist_wheel
twine check dist/*
deps = twine
[testenv:twine-check-py37]
commands =
python setup.py sdist bdist_wheel
twine check dist/*
deps = twine
2018-10-01 07:51:11 +00:00
[testenv:flake8-py27]
commands = flake8 dbtemplates
deps = flake8
2018-10-01 07:51:11 +00:00
[testenv:flake8-py37]
commands = flake8 dbtemplates
deps = flake8
[flake8]
exclude=.tox
ignore=E501,E127,E128,E124