forked from django-tastypie/django-tastypie
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
178 lines (155 loc) · 4.7 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
[tox]
envlist = py34-dev,py33-dev,py27-dev,py34-1.8,py33-1.8,py27-1.8,py34-1.7,py33-1.7,py27-1.7,py34-1.6,py33-1.6,py27-1.6,py26-1.6,py34-1.5,py33-1.5,py27-1.5,py26-1.5,py27-docs,py34-docs,py27-flake8
[testenv]
test-executable =
{envbindir}/coverage run --append --source=tastypie {envbindir}/django-admin.py
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/tests
commands =
{[testenv]test-executable} test -p '*' core.tests --settings=settings_core
{[testenv]test-executable} test basic.tests --settings=settings_basic
{[testenv]test-executable} test related_resource.tests --settings=settings_related
{[testenv]test-executable} test alphanumeric.tests --settings=settings_alphanumeric
{[testenv]test-executable} test authorization.tests --settings=settings_authorization
{[testenv]test-executable} test content_gfk.tests --settings=settings_content_gfk
{[testenv]test-executable} test customuser.tests --settings=settings_customuser
{[testenv]test-executable} test namespaced.tests --settings=settings_namespaced
{[testenv]test-executable} test slashless.tests --settings=settings_slashless
{[testenv]test-executable} test validation.tests --settings=settings_validation
{[testenv]test-executable} test gis.tests --settings=settings_gis_spatialite
commands-dj15 =
{[testenv]test-executable} test core --settings=settings_core
{[testenv]test-executable} test basic --settings=settings_basic
{[testenv]test-executable} test related_resource --settings=settings_related
{[testenv]test-executable} test alphanumeric --settings=settings_alphanumeric
{[testenv]test-executable} test authorization --settings=settings_authorization
{[testenv]test-executable} test content_gfk --settings=settings_content_gfk
{[testenv]test-executable} test customuser --settings=settings_customuser
{[testenv]test-executable} test namespaced --settings=settings_namespaced
{[testenv]test-executable} test slashless --settings=settings_slashless
{[testenv]test-executable} test validation --settings=settings_validation
{[testenv]test-executable} test gis --settings=settings_gis_spatialite
deps-py2 =
-r{toxinidir}/tests/requirements.txt
python-digest
-ehg+https://bitbucket.org/coagulant/django-oauth-plus/@django-1.7-proper#egg=django-oauth-plus
# django-oauth-plus does not support Django 1.7 yet
oauth2
pysqlite==2.7.0
deps-py3 =
-r{toxinidir}/tests/requirements.txt
python3-digest>=1.8b4
[testenv:py34-dev]
basepython = python3.4
deps =
{[testenv]deps-py3}
https://github.com/django/django/zipball/master
[testenv:py34-1.8]
basepython = python3.4
deps =
{[testenv]deps-py3}
django==1.8
[testenv:py34-1.7]
basepython = python3.4
deps =
{[testenv]deps-py3}
django==1.7
[testenv:py34-1.6]
basepython = python3.4
deps =
{[testenv]deps-py3}
django==1.6.2
[testenv:py34-1.5]
basepython = python3.4
deps =
{[testenv]deps-py3}
django==1.5.5
commands =
{[testenv]commands-dj15}
[testenv:py33-dev]
basepython = python3.3
deps =
{[testenv]deps-py3}
https://github.com/django/django/zipball/master
[testenv:py33-1.8]
basepython = python3.3
deps =
{[testenv]deps-py3}
django==1.8
[testenv:py33-1.7]
basepython = python3.3
deps =
{[testenv]deps-py3}
django==1.7
[testenv:py33-1.6]
basepython = python3.3
deps =
{[testenv]deps-py3}
django==1.6.2
[testenv:py33-1.5]
basepython = python3.3
deps =
{[testenv]deps-py3}
django==1.5.5
commands =
{[testenv]commands-dj15}
[testenv:py27-dev]
basepython = python2.7
deps =
{[testenv]deps-py2}
https://github.com/django/django/zipball/master
[testenv:py27-1.8]
basepython = python2.7
deps =
{[testenv]deps-py2}
django==1.8
[testenv:py27-1.7]
basepython = python2.7
deps =
{[testenv]deps-py2}
django==1.7
[testenv:py27-1.6]
basepython = python2.7
deps =
{[testenv]deps-py2}
django==1.6.2
[testenv:py27-1.5]
basepython = python2.7
deps =
{[testenv]deps-py2}
django==1.5.5
commands =
{[testenv]commands-dj15}
[testenv:py26-1.6]
basepython = python2.6
deps =
{[testenv]deps-py2}
django==1.6.2
[testenv:py26-1.5]
basepython = python2.6
deps =
{[testenv]deps-py2}
django==1.5.5
commands =
{[testenv]commands-dj15}
[testenv:py27-docs]
sitepackages = True
deps =
Sphinx
whitelist_externals = sphinx-build
changedir = docs
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:py34-docs]
sitepackages = True
deps =
Sphinx
whitelist_externals = sphinx-build
changedir = docs
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:py27-flake8]
commands =
{envbindir}/flake8 --ignore=E128 --max-complexity 10 .
deps =
flake8