Steve Piercy
2017-06-27 7eeb5598717ec7f1523643ef9ef5a0c35847040f
commit | author | age
69e0ec 1 [tox]
a9282d 2 envlist =
93e5ba 3     py27,py33,py34,py35,pypy,
a708d3 4     docs,pep8,
109b2a 5     {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     py33: python3.3
13     py34: python3.4
cc9126 14     py35: python3.5
a9282d 15     pypy: pypy
MM 16     py2: python2.7
601393 17     py3: python3.5
b555e9 18
a9282d 19 commands =
MM 20     pip install pyramid[testing]
21     nosetests --with-xunit --xunit-file=nosetests-{envname}.xml {posargs:}
109b2a 22
aa1c9b 23 [testenv:py27-scaffolds]
4cd6cb 24 basepython = python2.7
aa1c9b 25 commands =
CM 26     python pyramid/scaffolds/tests.py
27 deps = virtualenv
28
29 [testenv:py33-scaffolds]
b927e4 30 basepython = python3.3
aa1c9b 31 commands =
CM 32     python pyramid/scaffolds/tests.py
33 deps = virtualenv
34
35 [testenv:py34-scaffolds]
468054 36 basepython = python3.4
109b2a 37 commands =
CM 38     python pyramid/scaffolds/tests.py
39 deps = virtualenv
40
27b7d6 41 [testenv:py35-scaffolds]
MM 42 basepython = python3.5
43 commands =
44     python pyramid/scaffolds/tests.py
45 deps = virtualenv
46
109b2a 47 [testenv:pypy-scaffolds]
CM 48 basepython = pypy
49 commands =
50     python pyramid/scaffolds/tests.py
51 deps = virtualenv
b47e90 52
MM 53 [testenv:pep8]
a708d3 54 basepython = python3.5
b47e90 55 commands =
MM 56     flake8 pyramid/
57 deps =
58     flake8
a708d3 59
MM 60 [testenv:docs]
61 basepython = python3.5
62 whitelist_externals = make
63 commands =
64     pip install pyramid[docs]
5629b8 65     make -C docs doctest html epub BUILDDIR={envdir} "SPHINXOPTS=-W -E"
a708d3 66
94aabc 67 [testenv:pdf]
SP 68 basepython = python3.5
69 whitelist_externals = make
70 commands =
71     pip install pyramid[docs]
72     make -C docs latexpdf BUILDDIR={envdir} "SPHINXOPTS=-W -E"
73
a708d3 74 # we separate coverage into its own testenv because a) "last run wins" wrt
MM 75 # cobertura jenkins reporting and b) pypy and jython can't handle any
76 # combination of versions of coverage and nosexcover that i can find.
77 [testenv:py2-cover]
78 commands =
79     pip install pyramid[testing]
80     coverage run --source=pyramid {envbindir}/nosetests
81     coverage xml -o coverage-py2.xml
82 setenv =
83     COVERAGE_FILE=.coverage.py2
84
85 [testenv:py3-cover]
86 commands =
87     pip install pyramid[testing]
88     coverage run --source=pyramid {envbindir}/nosetests
89     coverage xml -o coverage-py3.xml
90 setenv =
91     COVERAGE_FILE=.coverage.py3
92
93 [testenv:coverage]
94 basepython = python3.5
95 commands =
96     coverage erase
97     coverage combine
98     coverage xml
99     coverage report --show-missing --fail-under=100
100 deps =
101     coverage
102 setenv =
103     COVERAGE_FILE=.coverage