Steve Piercy
2018-10-09 045951c2160c3431a319c9e662c34a6685cab007
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]
964e30 77 # pin to 3.5 to match what RTD uses
a708d3 78 basepython = python3.5
MM 79 whitelist_externals = make
80 commands =
0fec6d 81     make -C docs doctest html epub BUILDDIR={envdir} "SPHINXOPTS=-W -E"
0760eb 82 extras =
MM 83     docs
a708d3 84
9cd1d1 85 [testenv:pdf]
SP 86 basepython = python3.5
87 whitelist_externals = make
88 commands =
89     make -C docs latexpdf BUILDDIR={envdir} "SPHINXOPTS=-W -E"
0760eb 90 extras =
MM 91     docs
9cd1d1 92
a708d3 93 # we separate coverage into its own testenv because a) "last run wins" wrt
MM 94 # cobertura jenkins reporting and b) pypy and jython can't handle any
95 # combination of versions of coverage and nosexcover that i can find.
96 [testenv:py2-cover]
97 commands =
98     coverage run --source=pyramid {envbindir}/nosetests
99     coverage xml -o coverage-py2.xml
100 setenv =
101     COVERAGE_FILE=.coverage.py2
0760eb 102 extras =
MM 103     testing
a708d3 104
MM 105 [testenv:py3-cover]
106 commands =
107     coverage run --source=pyramid {envbindir}/nosetests
108     coverage xml -o coverage-py3.xml
109 setenv =
110     COVERAGE_FILE=.coverage.py3
0760eb 111 extras =
MM 112     testing
a708d3 113
MM 114 [testenv:coverage]
efb35f 115 skip_install = True
a708d3 116 basepython = python3.5
MM 117 commands =
118     coverage erase
119     coverage combine
120     coverage xml
121     coverage report --show-missing --fail-under=100
122 deps =
123     coverage
124 setenv =
125     COVERAGE_FILE=.coverage