Skip to content

Commit 8117362

Browse files
author
Jon Wayne Parrott
committed
Slightly more readable tox.ini
1 parent 584f950 commit 8117362

File tree

1 file changed

+28
-18
lines changed

1 file changed

+28
-18
lines changed

tox.ini

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,36 @@
11
[tox]
22
skipsdist = True
3-
envlist = {py27}-{nosetest,pep8}, cover
3+
envlist = py27, pep8, cover
44

55
[testenv]
66
passenv = PYTHONPATH GOOGLE_* GCLOUD_* TEST_* TRAVIS*
7-
basepython =
8-
cover,py27: python2.7
7+
basepython = python2.7
8+
9+
[testenv:py27]
910
deps =
10-
flask
1111
google-api-python-client
12-
pep8: flake8
13-
pep8: flake8-import-order
14-
nosetest,cover: mock
15-
nosetest,cover: nose
16-
nosetest,cover: nosegae
17-
cover: coverage
18-
cover: coveralls
19-
cover: nosexcover
12+
flask
13+
mock
14+
nose
15+
nosegae
2016
commands =
21-
cover: nosetests --with-gae --with-xunit --with-xcoverage \
22-
cover: --cover-tests --cover-branches --cover-min-percentage=70 \
23-
cover: --cover-inclusive --cover-erase
24-
cover: coveralls
25-
nosetest: nosetests --with-gae {posargs}
26-
pep8: flake8 --max-complexity=10 --import-order-style=google
17+
nosetests --with-gae {posargs}
18+
19+
[testenv:pep8]
20+
deps =
21+
flake8
22+
flake8-import-order
23+
commands =
24+
flake8 --max-complexity=10 --import-order-style=google {posargs}
25+
26+
[testenv:cover]
27+
deps =
28+
{[testenv:py27]deps}
29+
coverage
30+
coveralls
31+
nosexcover
32+
commands =
33+
nosetests --with-gae --with-xunit --with-xcoverage \
34+
--cover-tests --cover-branches --cover-min-percentage=70 \
35+
--cover-inclusive --cover-erase
36+
coveralls

0 commit comments

Comments
 (0)