Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slightly more readable tox.ini #29

Merged
merged 1 commit into from
May 21, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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