Skip to content

Commit

Permalink
Merge pull request #29 from GoogleCloudPlatform/jonwayne-tox
Browse files Browse the repository at this point in the history
Slightly more readable tox.ini
  • Loading branch information
Jonathan Wayne Parrott committed May 21, 2015
2 parents 584f950 + 8117362 commit c58e810
Showing 1 changed file with 28 additions and 18 deletions.
46 changes: 28 additions & 18 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,26 +1,36 @@
[tox]
skipsdist = True
envlist = {py27}-{nosetest,pep8}, cover
envlist = py27, pep8, cover

[testenv]
passenv = PYTHONPATH GOOGLE_* GCLOUD_* TEST_* TRAVIS*
basepython =
cover,py27: python2.7
basepython = python2.7

[testenv:py27]
deps =
flask
google-api-python-client
pep8: flake8
pep8: flake8-import-order
nosetest,cover: mock
nosetest,cover: nose
nosetest,cover: nosegae
cover: coverage
cover: coveralls
cover: nosexcover
flask
mock
nose
nosegae
commands =
cover: nosetests --with-gae --with-xunit --with-xcoverage \
cover: --cover-tests --cover-branches --cover-min-percentage=70 \
cover: --cover-inclusive --cover-erase
cover: coveralls
nosetest: nosetests --with-gae {posargs}
pep8: flake8 --max-complexity=10 --import-order-style=google
nosetests --with-gae {posargs}

[testenv:pep8]
deps =
flake8
flake8-import-order
commands =
flake8 --max-complexity=10 --import-order-style=google {posargs}

[testenv:cover]
deps =
{[testenv:py27]deps}
coverage
coveralls
nosexcover
commands =
nosetests --with-gae --with-xunit --with-xcoverage \
--cover-tests --cover-branches --cover-min-percentage=70 \
--cover-inclusive --cover-erase
coveralls

0 comments on commit c58e810

Please sign in to comment.