django-configurations/tox.ini
Daniel Hahler b5e1eb6ade Travis/tox: use dj19 tarball, add master; remove unsupported
- Add `allow_failures` section for Django master on Travis.
 - Django 1.9 is only supported on Python 2.7 and 3.4+.
 - Only test main Python 2 and 3 with Django master.
2015-12-17 23:31:08 +01:00

60 lines
1.7 KiB
INI

[tox]
skipsdist = True
usedevelop = True
minversion = 1.8
envlist =
flake8-py27,
flake8-py35,
py{26,py}-dj{14,15,16},
py27-dj{14,15,16,17,18,19,master},
py{32,33,34,py}-dj{15,16,17,18}
py{34,35,py}-dj{19,master}
[testenv]
basepython =
py26: python2.6
py27: python2.7
py32: python3.2
py33: python3.3
py34: python3.4
py35: python3.5
pypy: pypy
usedevelop = true
setenv =
DJANGO_SETTINGS_MODULE = tests.settings.main
DJANGO_CONFIGURATION = Test
deps =
-rtests/requirements.txt
dj14: https://github.com/django/django/archive/stable/1.4.x.tar.gz#egg=django
dj15: https://github.com/django/django/archive/stable/1.5.x.tar.gz#egg=django
dj16: https://github.com/django/django/archive/stable/1.6.x.tar.gz#egg=django
dj17: https://github.com/django/django/archive/stable/1.7.x.tar.gz#egg=django
dj18: https://github.com/django/django/archive/stable/1.8.x.tar.gz#egg=django
dj19: https://github.com/django/django/archive/stable/1.9.x.tar.gz#egg=django
djmaster: https://github.com/django/django/archive/master.tar.gz#egg=django
commands =
coverage run {envbindir}/django-cadmin test -v2 {posargs:tests}
coverage report
# Coverage supports only Python 3.3+ for Python 3.
[testenv:py32-dj15]
commands = {envbindir}/django-cadmin test -v2 {posargs:tests}
[testenv:py32-dj16]
commands = {envbindir}/django-cadmin test -v2 {posargs:tests}
[testenv:py32-dj17]
commands = {envbindir}/django-cadmin test -v2 {posargs:tests}
[testenv:py32-dj18]
commands = {envbindir}/django-cadmin test -v2 {posargs:tests}
[testenv:flake8-py27]
commands = flake8 configurations
deps = flake8
[testenv:flake8-py35]
commands = flake8 configurations
deps = flake8
[flake8]
exclude=.tox
ignore=E501,E127,E128,E124