forked from rapidsms/rapidsms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
125 lines (105 loc) · 2.76 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[tox]
envlist = py26-1.6.X,
py27-1.6.X,
py27-1.7.X,
py27-1.8.X,
py27-trunk,
py33-1.6.X,
py33-1.7.X,
py33-1.8.X,
py33-trunk,
py34-1.7.X,
py34-1.8.X,
py34-trunk,
py27-migrations,
py34-migrations,
docs,
flake8,
coverage
[default]
deps = pip>7
-r{toxinidir}/tests/requirements/dev.txt
[testenv]
basepython = python2.7
setenv = PYTHON_PATH = {toxinidir}
DJANGO_SETTINGS_MODULE = tests.default
commands = {envpython} run_tests.py {posargs}
[testenv:py26-1.6.X]
basepython = python2.6
deps = django>=1.6,<1.7
{[default]deps}
[testenv:py27-1.6.X]
basepython = python2.7
deps = django>=1.6,<1.7
{[default]deps}
[testenv:py27-1.7.X]
basepython = python2.7
deps = django>=1.7,<1.8
{[default]deps}
[testenv:py27-1.8.X]
basepython = python2.7
deps = https://github.com/django/django/archive/stable/1.8.x.tar.gz
{[default]deps}
[testenv:py27-trunk]
basepython = python2.7
deps = https://github.com/django/django/archive/master.tar.gz
{[default]deps}
[testenv:py33-1.6.X]
basepython = python3.3
deps = django>=1.6,<1.7
{[default]deps}
[testenv:py33-1.7.X]
basepython = python3.3
deps = django>=1.7,<1.8
{[default]deps}
[testenv:py33-1.8.X]
basepython = python3.3
deps = https://github.com/django/django/archive/stable/1.8.x.tar.gz
{[default]deps}
[testenv:py33-trunk]
basepython = python3.3
deps = https://github.com/django/django/archive/master.tar.gz
{[default]deps}
[testenv:py34-1.7.X]
basepython = python3.4
deps = django>=1.7,<1.8
{[default]deps}
[testenv:py34-1.8.X]
basepython = python3.4
deps = https://github.com/django/django/archive/stable/1.8.x.tar.gz
{[default]deps}
[testenv:py34-trunk]
basepython = python3.4
deps = https://github.com/django/django/archive/master.tar.gz
{[default]deps}
[testenv:py27-migrations]
basepython = python2.7
deps = django
{[default]deps}
setenv = {[testenv]setenv}
commands = {toxinidir}/check_for_missing_migrations.sh
[testenv:py34-migrations]
basepython = python3.4
deps = django
{[default]deps}
setenv = {[testenv]setenv}
commands = {toxinidir}/check_for_missing_migrations.sh
[testenv:docs]
basepython = python2.7
deps = Sphinx==1.1.3
django>=1.7,<1.8
{[default]deps}
commands =
{envbindir}/sphinx-build -a -n -W -b html -d docs/_build/doctrees docs docs/_build/html
[flake8]
exclude = docs,env,migrations,south_migrations,.tox
ignore = E128
max-line-length = 120
[testenv:flake8]
deps = flake8>2.2.2
commands = flake8 .
[testenv:coverage]
commands = coverage run run_tests.py
coverage report -m --fail-under=80
deps = coverage>=3.7.1
{[testenv:py27-1.7.X]deps}