Skip to content

Commit 888fcbc

Browse files
committed
Simplify tox to avoid repetition
Also took the opportunity to: * Use more cores for py*-xdist environments * Update freeze test to use py36
1 parent e012dbe commit 888fcbc

File tree

1 file changed

+14
-22
lines changed

1 file changed

+14
-22
lines changed

tox.ini

+14-22
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ envlist =
1313
{py27,py36}-{pexpect,xdist,trial,numpy,pluggymaster}
1414
py27-nobyte
1515
doctesting
16-
py35-freeze
16+
py36-freeze
1717
docs
1818

1919
[testenv]
@@ -56,12 +56,11 @@ deps =
5656
hypothesis>=3.5.2
5757
changedir=testing
5858
commands =
59-
pytest -n1 -ra {posargs:.}
59+
pytest -n8 -ra {posargs:.}
6060

6161
[testenv:py36-xdist]
6262
deps = {[testenv:py27-xdist]deps}
63-
commands =
64-
pytest -n3 -ra {posargs:testing}
63+
commands = {[testenv:py27-xdist]commands}
6564

6665
[testenv:py27-pexpect]
6766
changedir = testing
@@ -71,11 +70,10 @@ commands =
7170
pytest -ra test_pdb.py test_terminal.py test_unittest.py
7271

7372
[testenv:py36-pexpect]
74-
changedir = testing
75-
platform = linux|darwin
73+
changedir = {[testenv:py27-pexpect]changedir}
74+
platform = {[testenv:py27-pexpect]platform}
7675
deps = {[testenv:py27-pexpect]deps}
77-
commands =
78-
pytest -ra test_pdb.py test_terminal.py test_unittest.py
76+
commands = {[testenv:py27-pexpect]commands}
7977

8078
[testenv:py27-nobyte]
8179
deps =
@@ -95,18 +93,16 @@ commands =
9593

9694
[testenv:py36-trial]
9795
deps = {[testenv:py27-trial]deps}
98-
commands =
99-
pytest -ra {posargs:testing/test_unittest.py}
96+
commands = {[testenv:py27-trial]commands}
10097

10198
[testenv:py27-numpy]
102-
deps=numpy
99+
deps = numpy
103100
commands=
104101
pytest -ra {posargs:testing/python/approx.py}
105102

106103
[testenv:py36-numpy]
107-
deps=numpy
108-
commands=
109-
pytest -ra {posargs:testing/python/approx.py}
104+
deps = {[testenv:py27-numpy]deps}
105+
commands = {[testenv:py27-numpy]commands}
110106

111107
[testenv:py27-pluggymaster]
112108
setenv=
@@ -115,12 +111,9 @@ deps =
115111
{[testenv]deps}
116112
git+https://github.com/pytest-dev/pluggy.git@master
117113

118-
[testenv:py35-pluggymaster]
119-
setenv=
120-
_PYTEST_SETUP_SKIP_PLUGGY_DEP=1
121-
deps =
122-
{[testenv:py27-pluggymaster]deps}
123-
git+https://github.com/pytest-dev/pluggy.git@master
114+
[testenv:py36-pluggymaster]
115+
setenv = {[testenv:py27-pluggymaster]setenv}
116+
deps = {[testenv:py27-pluggymaster]deps}
124117

125118
[testenv:docs]
126119
skipsdist = True
@@ -176,7 +169,7 @@ changedir = testing
176169
commands =
177170
{envpython} {envbindir}/py.test-jython -ra {posargs}
178171

179-
[testenv:py35-freeze]
172+
[testenv:py36-freeze]
180173
changedir = testing/freeze
181174
deps = pyinstaller
182175
commands =
@@ -199,7 +192,6 @@ commands =
199192
[pytest]
200193
minversion = 2.0
201194
plugins = pytester
202-
#--pyargs --doctest-modules --ignore=.tox
203195
addopts = -ra -p pytester --ignore=testing/cx_freeze
204196
rsyncdirs = tox.ini pytest.py _pytest testing
205197
python_files = test_*.py *_test.py testing/*/*.py

0 commit comments

Comments
 (0)