Skip to content

Commit f76e11b

Browse files
committed
Only install code coverage dependencies on platforms which are going to do code coverage
1 parent c859fe2 commit f76e11b

1 file changed

Lines changed: 39 additions & 2 deletions

File tree

tox.ini

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ envlist = py27,py33,py34,py35,py36,py37,pypy
33

44
[testenv]
55
passenv = CI TRAVIS TRAVIS_* APPVEYOR*
6+
7+
[testenv:py27]
68
deps =
79
codecov
810
mock
@@ -12,26 +14,61 @@ deps =
1214
pytest-cov
1315
pytest-xdist
1416
six
15-
16-
[testenv:py27]
1717
commands =
1818
py.test -v -n2 --cov=cmd2 --basetemp={envtmpdir} {posargs}
1919
codecov
2020

2121
[testenv:py33]
22+
deps =
23+
mock
24+
pyparsing
25+
pyperclip
26+
pytest
27+
pytest-xdist
28+
six
2229
commands = py.test -v -n2
2330

2431
[testenv:py34]
32+
deps =
33+
mock
34+
pyparsing
35+
pyperclip
36+
pytest
37+
pytest-xdist
38+
six
2539
commands = py.test -v -n2
2640

2741
[testenv:py35]
42+
deps =
43+
mock
44+
pyparsing
45+
pyperclip
46+
pytest
47+
pytest-xdist
48+
six
2849
commands = py.test -v -n2
2950

3051
[testenv:py36]
52+
deps =
53+
codecov
54+
mock
55+
pyparsing
56+
pyperclip
57+
pytest
58+
pytest-cov
59+
pytest-xdist
60+
six
3161
commands =
3262
py.test -v -n2 --cov=cmd2 --basetemp={envtmpdir} {posargs}
3363
codecov
3464

3565
[testenv:py37]
66+
deps =
67+
mock
68+
pyparsing
69+
pyperclip
70+
pytest
71+
pytest-xdist
72+
six
3673
commands = py.test -v -n2
3774

0 commit comments

Comments
 (0)