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