summaryrefslogtreecommitdiff
path: root/tox-tmpl.ini
blob: c1ce39d74cc4b847f5c75ea6322f534d6bace702 (plain)
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py26,py26-nolxml,py27,py27-nolxml,py32,py32-nolxml,pypy,tg11,tg15,cornice,coverage,py33,py33-nolxml,pecan-dev26,pecan-dev27,pecan-dev32,pecan-dev33,pep8

[common]
testtools=
    nose
    coverage
    pbr
    webtest
basedeps=
    transaction
    pecan
    Sphinx
    Flask

[axes]
python=py26,py27,py32,py33,pypy
sqlalchemy=sa5,sa6,sa7*
lxml=lxml*,nolxml
json=json*,simplejson

[axis:python]
deps = 
    {[common]testtools}
    {[common]basedeps}
    suds

commands=
    {envbindir}/coverage run {envbindir}/nosetests --nologcapture --with-xunit --xunit-file nosetests-{envname}.xml wsme/tests wsmeext/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py

[axis:python:py26]
deps = 
    {[common]testtools}
    unittest2
    {[common]basedeps}
    suds
basepython=python2.6

[axis:python:py27]
basepython=python2.7

[axis:python:py32]
basepython=python3.2

deps = 
    {[common]testtools}
    {[common]basedeps}
    https://bitbucket.org/bernh/suds-python-3-patches/downloads/suds_patched.zip

commands=
    {envbindir}/coverage run {envbindir}/nosetests --with-xunit --xunit-file nosetests-{envname}.xml wsme/tests wsmeext/tests tests/pecantest tests/pecantest tests/test_sphinxext.py tests/test_flask.py --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py

[axis:python:py33]
basepython=python3.3

deps =
    {[common]testtools}
    {[common]basedeps}
    https://bitbucket.org/bernh/suds-python-3-patches/downloads/suds_patched.zip

commands=
    {envbindir}/coverage run {envbindir}/nosetests --with-xunit --xunit-file nosetests-{envname}.xml wsme/tests wsmeext/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py

[axis:sqlalchemy:sa5]
deps=
    SQLAlchemy<=0.5.99

constraints=
    !python:py32


[axis:sqlalchemy:sa6]
deps=
    SQLAlchemy<=0.6.99

[axis:sqlalchemy:sa7]
deps=
    SQLAlchemy<=0.7.99

[axis:json:simplejson]
deps=
    simplejson

constraints=
    !python:py32

[axis:lxml:lxml]
deps=
    lxml

[testenv]
setenv=
    COVERAGE_FILE=.coverage.{envname}

[testenv:tg11]
basepython=python2.6
deps=
    pbr
    nose
    webtest < 1.4.99
    coverage
    simplejson
    suds
    lxml
commands=
    {envbindir}/easy_install -i http://www.turbogears.org/1.1/downloads/current/index/ 'TurboGears<1.1.99'
    {envbindir}/nosetests --nologcapture --with-xunit --xunit-file nosetests-{envname}.xml tests/test_tg1.py --verbose --with-coverage --cover-package wsme,wsmeext {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py wsmeext/*.py

[testenv:tg15]
basepython=python2.6
deps=
    pbr
    nose
    webtest < 1.4.99
    coverage
    simplejson
    suds
    lxml
commands=
    {envbindir}/easy_install -i http://www.turbogears.org/1.5/downloads/current/index/ 'TurboGears<1.5.99'
    {envbindir}/nosetests --nologcapture --with-xunit --xunit-file nosetests-{envname}.xml tests/test_tg15.py --verbose --with-coverage --cover-package wsme,wsmeext {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py wsmeext/*.py

[testenv:tg21]
basepython=python2.6
deps=
    pbr
    nose
    coverage
    simplejson
commands=
    {envbindir}/easy_install -i http://www.turbogears.org/2.1/downloads/current/index/ 'TurboGears2<2.1.99' webtest
    {envbindir}/coverage run {envbindir}/nosetests --with-xunit --xunit-file nosetests-{envname}.xml tests/test_tg20.py --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py


[testenv:cornice]
basepython=python2.7
usedevelop=True
deps=
    pbr
    nose
    webtest
    coverage
    cornice
commands=
    {envbindir}/nosetests tests/test_cornice.py --with-xunit --xunit-file nosetests-{envname}.xml --verbose --with-coverage --cover-package wsmeext {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsmeext/cornice.py

[testenv:pecan-dev-base]
deps=
    {[common]testtools}
    webtest
    transaction
    suds
    https://github.com/stackforge/pecan/zipball/master

[testenv:pecan-dev26]
basepython=python2.6
deps={[testenv:pecan-dev-base]deps}
commands=
    {envbindir}/nosetests tests/pecantest --with-xunit --xunit-file nosetests-{envname}.xml --verbose {posargs}

[testenv:pecan-dev27]
basepython=python2.7
deps={[testenv:pecan-dev-base]deps}
commands=
    {envbindir}/nosetests tests/pecantest --with-xunit --xunit-file nosetests-{envname}.xml --verbose {posargs}

[testenv:pecan-dev32]
basepython=python3.2
deps={[testenv:pecan-dev-base]deps}
commands=
    {envbindir}/nosetests tests/pecantest --with-xunit --xunit-file nosetests-{envname}.xml --verbose {posargs}

[testenv:pecan-dev33]
basepython=python3.3
deps={[testenv:pecan-dev-base]deps}
commands=
    {envbindir}/nosetests tests/pecantest --with-xunit --xunit-file nosetests-{envname}.xml --verbose {posargs}

[testenv:coverage]
basepython=python
deps=
    coverage
setenv=
    COVERAGE_FILE=.coverage
commands=
    {envbindir}/coverage erase
    {envbindir}/coverage combine
    {envbindir}/coverage xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/protocols/*.py wsmeext/*.py

[testenv:doc]
deps=
    cloud_sptheme
    Sphinx

changedir=
    doc

commands=
    make clean ziphtml

[testenv:pep8]
deps = flake8
commands = flake8 wsme wsmeext setup.py

# Generic environment for running commands like packaging
[testenv:venv]
commands = {posargs}
usedevelop=True
deps=
    pbr