]> git.ozlabs.org Git - patchwork/blob - tox.ini
485f7c7acfa292847ab297e442fce0f11f3eba24
[patchwork] / tox.ini
1 [tox]
2 envlist = {py27}-django{15,16,17}, pep8
3 skipsdist = True
4
5 [testenv:pep8]
6 deps = flake8
7 commands = flake8 {posargs}
8
9 [flake8]
10 ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405
11 exclude = ./patchwork/tests
12
13 [testenv:lint]
14 basepython = python2.7
15 deps =
16     pylint
17     -r{toxinidir}/docs/requirements-django-1.7-mysql.txt
18 commands = pylint patchwork --rcfile=pylint.rc
19
20 [testenv:coverage]
21 basepython = python2.7
22 deps =
23     coverage
24     -r{toxinidir}/docs/requirements-django-1.6-mysql.txt
25 setenv =
26     DJANGO_SETTINGS_MODULE = patchwork.settings.dev
27 commands =
28     coverage erase
29     {toxinidir}/manage.py syncdb
30     coverage run --omit=*tox* --branch {toxinidir}/manage.py test patchwork
31     coverage report -m
32
33 [testenv]
34 basepython =
35     py27: python2.7
36 commands =
37     {toxinidir}/manage.py syncdb
38     {toxinidir}/manage.py test patchwork
39 deps =
40     python-dateutil==1.5
41     MySQL-python==1.2.5
42     django15: django<1.6,>=1.5
43     django16: django<1.7,>=1.6
44     django17: django<1.8,>=1.7
45 setenv =
46     DJANGO_SETTINGS_MODULE = patchwork.settings.dev