django-configurations/tox.ini
2015-01-06 21:20:52 +01:00

50 lines
1.3 KiB
INI

[tox]
skipsdist = True
usedevelop = True
minversion = 1.8
envlist =
coverage-py27-dj16,
flake8-py27,
flake8-py33,
py{26,py}-dj{14,15,16},
py27-dj{14,15,16,17,18},
py{32,33,34,py}-dj{15,16,17,18}
[testenv]
basepython =
py26: python2.6
py27: python2.7
py32: python3.2
py33: python3.3
py34: python3.4
pypy: pypy
usedevelop = true
deps =
django-discover-runner
mock
dj-database-url
dj-email-url
dj-search-url
django-cache-url>=0.6.0
six
dj14: https://github.com/django/django/archive/stable/1.4.x.zip#egg=django
dj15: https://github.com/django/django/archive/stable/1.5.x.zip#egg=django
dj16: https://github.com/django/django/archive/stable/1.6.x.zip#egg=django
dj17: https://github.com/django/django/archive/stable/1.7.x.zip#egg=django
dj18: https://github.com/django/django/archive/master.zip#egg=django
flake8: flake8
coverage: coverage
commands =
python manage.py test -v2 {posargs:tests} --failfast
[testenv:flake8-py27]
commands = flake8 configurations --ignore=E501,E127,E128,E124
[testenv:flake8-py33]
commands = flake8 configurations --ignore=E501,E127,E128,E124
[testenv:coverage-py27-dj16]
commands = coverage erase
coverage run manage.py test -v2 {posargs:tests}
coverage report