forked from falconry/falcon
/
tox.ini
138 lines (118 loc) · 3.46 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
[tox]
envlist = py26,
py27,
py27_cython,
py33,
py33_cython,
py34,
py34_cython,
pypy,
pep8,
pylint,
py27_smoke,
py27_smoke_cython,
; py26_bench,
; py27_bench,
; py27_bench_cython,
; py33_bench,
; py33_bench_cython,
; py34_bench,
; py34_bench_cython,
; pypy_bench
[testenv]
deps = -r{toxinidir}/tools/test-requires
commands = {toxinidir}/tools/clean_cythoned.sh {toxinidir}/falcon
nosetests {posargs}
[testenv:py27]
deps = -r{toxinidir}/tools/test-requires
nose-cprof
commands = {toxinidir}/tools/clean_cythoned.sh {toxinidir}/falcon
nosetests \
--with-cprofile \
--cprofile-stats-erase \
--cprofile-stats-file=cprofile.dat \
{posargs}
[testenv:py27_cython]
deps = -r{toxinidir}/tools/test-requires
cython
basepython = python2.7
commands = {toxinidir}/tools/clean_cythoned.sh {toxinidir}/falcon
nosetests \
{posargs}
[testenv:py33_cython]
deps = -r{toxinidir}/tools/test-requires
cython
basepython = python3.3
commands = {toxinidir}/tools/clean_cythoned.sh {toxinidir}/falcon
nosetests \
{posargs}
[testenv:py34_cython]
deps = -r{toxinidir}/tools/test-requires
cython
basepython = python3.4
commands = {toxinidir}/tools/clean_cythoned.sh {toxinidir}/falcon
nosetests \
{posargs}
[testenv:py3kwarn]
deps = py3kwarn
commands = py3kwarn falcon
[testenv:pep8]
deps = flake8
commands = flake8 \
--max-complexity=12 \
--exclude=./build,.venv,.tox,dist,doc,./falcon/bench/nuts \
--ignore=F403 \
{posargs}
[testenv:pylint]
deps = pylint
commands = pylint falcon \
--ignore=bench,tests \
-E \
{posargs}
[testenv:py26_bench]
deps = -r{toxinidir}/tools/bench-requires
basepython = python2.6
commands = falcon-bench {posargs}
[testenv:py27_bench]
deps = -r{toxinidir}/tools/bench-requires
basepython = python2.7
commands = falcon-bench {posargs}
[testenv:py27_bench_cython]
deps = -r{toxinidir}/tools/bench-requires
cython
basepython = python2.7
commands = falcon-bench {posargs}
[testenv:py33_bench]
deps = -r{toxinidir}/tools/bench-requires
basepython = python3.3
commands = falcon-bench {posargs}
[testenv:py33_bench_cython]
deps = -r{toxinidir}/tools/bench-requires
cython
basepython = python3.3
commands = falcon-bench {posargs}
[testenv:py34_bench]
deps = -r{toxinidir}/tools/bench-requires
basepython = python3.4
# NOTE(kgriffs): Hard-code test since other frameworks don't work on 3.4
commands = falcon-bench -b falcon -b falcon-ext -b pecan -b bottle {posargs}
[testenv:py34_bench_cython]
deps = -r{toxinidir}/tools/bench-requires
cython
basepython = python3.4
commands = falcon-bench -b falcon -b falcon-ext -b pecan -b bottle {posargs}
[testenv:pypy_bench]
deps = -r{toxinidir}/tools/bench-requires
basepython = pypy
commands = falcon-bench {posargs}
[testenv:py27_smoke]
# This test smoke-tests a basic Falcon app
deps = -r{toxinidir}/tools/bench-requires
basepython = python2.7
commands = falcon-bench -t 1 -b falcon-ext
[testenv:py27_smoke_cython]
# This test ensures that a falcon app will run fine under Cython
deps = -r{toxinidir}/tools/bench-requires
cython
basepython = python2.7
commands = falcon-bench -t 1 -b falcon-ext