commit | author | age
|
69e0ec
|
1 |
[tox] |
a9282d
|
2 |
envlist = |
2ec353
|
3 |
lint, |
e259f1
|
4 |
py27,py34,py35,py36,py37,py38,pypy,pypy3, |
2ec353
|
5 |
docs,{py2,py3}-cover,coverage, |
0c4c9f
|
6 |
|
69e0ec
|
7 |
[testenv] |
a9282d
|
8 |
# Most of these are defaults but if you specify any you can't fall back |
MM |
9 |
# to defaults for others. |
|
10 |
basepython = |
|
11 |
py27: python2.7 |
|
12 |
py34: python3.4 |
cc9126
|
13 |
py35: python3.5 |
1941d2
|
14 |
py36: python3.6 |
568ce3
|
15 |
py37: python3.7 |
e259f1
|
16 |
py38: python3.8 |
a9282d
|
17 |
pypy: pypy |
fa9992
|
18 |
pypy3: pypy3 |
a9282d
|
19 |
py2: python2.7 |
601393
|
20 |
py3: python3.5 |
b555e9
|
21 |
|
a9282d
|
22 |
commands = |
MM |
23 |
nosetests --with-xunit --xunit-file=nosetests-{envname}.xml {posargs:} |
0760eb
|
24 |
|
MM |
25 |
extras = |
|
26 |
testing |
109b2a
|
27 |
|
aa1c9b
|
28 |
[testenv:py27-scaffolds] |
4cd6cb
|
29 |
basepython = python2.7 |
aa1c9b
|
30 |
commands = |
CM |
31 |
python pyramid/scaffolds/tests.py |
|
32 |
deps = virtualenv |
|
33 |
|
|
34 |
[testenv:py34-scaffolds] |
468054
|
35 |
basepython = python3.4 |
109b2a
|
36 |
commands = |
CM |
37 |
python pyramid/scaffolds/tests.py |
|
38 |
deps = virtualenv |
|
39 |
|
aa52c5
|
40 |
[testenv:py35-scaffolds] |
MM |
41 |
basepython = python3.5 |
|
42 |
commands = |
|
43 |
python pyramid/scaffolds/tests.py |
|
44 |
deps = virtualenv |
|
45 |
|
0844c6
|
46 |
[testenv:py36-scaffolds] |
MM |
47 |
basepython = python3.6 |
|
48 |
commands = |
|
49 |
python pyramid/scaffolds/tests.py |
|
50 |
deps = virtualenv |
|
51 |
|
e259f1
|
52 |
[testenv:py37-scaffolds] |
SP |
53 |
basepython = python3.7 |
|
54 |
commands = |
|
55 |
python pyramid/scaffolds/tests.py |
|
56 |
deps = virtualenv |
|
57 |
|
109b2a
|
58 |
[testenv:pypy-scaffolds] |
CM |
59 |
basepython = pypy |
|
60 |
commands = |
|
61 |
python pyramid/scaffolds/tests.py |
|
62 |
deps = virtualenv |
b47e90
|
63 |
|
2ec353
|
64 |
[testenv:lint] |
efb35f
|
65 |
skip_install = True |
a708d3
|
66 |
basepython = python3.5 |
b47e90
|
67 |
commands = |
MM |
68 |
flake8 pyramid/ |
e42ba5
|
69 |
python setup.py check -r -s -m |
MM |
70 |
check-manifest |
|
71 |
deps = |
2ec353
|
72 |
flake8 |
e42ba5
|
73 |
readme_renderer |
MM |
74 |
check-manifest |
|
75 |
|
a708d3
|
76 |
[testenv:docs] |
MM |
77 |
basepython = python3.5 |
|
78 |
whitelist_externals = make |
|
79 |
commands = |
0fec6d
|
80 |
make -C docs doctest html epub BUILDDIR={envdir} "SPHINXOPTS=-W -E" |
0760eb
|
81 |
extras = |
MM |
82 |
docs |
a708d3
|
83 |
|
9cd1d1
|
84 |
[testenv:pdf] |
SP |
85 |
basepython = python3.5 |
|
86 |
whitelist_externals = make |
|
87 |
commands = |
|
88 |
make -C docs latexpdf BUILDDIR={envdir} "SPHINXOPTS=-W -E" |
0760eb
|
89 |
extras = |
MM |
90 |
docs |
9cd1d1
|
91 |
|
a708d3
|
92 |
# we separate coverage into its own testenv because a) "last run wins" wrt |
MM |
93 |
# cobertura jenkins reporting and b) pypy and jython can't handle any |
|
94 |
# combination of versions of coverage and nosexcover that i can find. |
|
95 |
[testenv:py2-cover] |
|
96 |
commands = |
|
97 |
coverage run --source=pyramid {envbindir}/nosetests |
|
98 |
coverage xml -o coverage-py2.xml |
|
99 |
setenv = |
|
100 |
COVERAGE_FILE=.coverage.py2 |
0760eb
|
101 |
extras = |
MM |
102 |
testing |
a708d3
|
103 |
|
MM |
104 |
[testenv:py3-cover] |
|
105 |
commands = |
|
106 |
coverage run --source=pyramid {envbindir}/nosetests |
|
107 |
coverage xml -o coverage-py3.xml |
|
108 |
setenv = |
|
109 |
COVERAGE_FILE=.coverage.py3 |
0760eb
|
110 |
extras = |
MM |
111 |
testing |
a708d3
|
112 |
|
MM |
113 |
[testenv:coverage] |
efb35f
|
114 |
skip_install = True |
a708d3
|
115 |
basepython = python3.5 |
MM |
116 |
commands = |
|
117 |
coverage erase |
|
118 |
coverage combine |
|
119 |
coverage xml |
|
120 |
coverage report --show-missing --fail-under=100 |
|
121 |
deps = |
|
122 |
coverage |
|
123 |
setenv = |
|
124 |
COVERAGE_FILE=.coverage |