Skip to content

Commit

Permalink
Removing cover.sh and folding into tox config.
Browse files Browse the repository at this point in the history
This is to make the tox config friendlier to Windows
and other non-bash shells.

Towards googleapis#1123.
  • Loading branch information
dhermes committed Nov 20, 2015
1 parent 58197c3 commit 40d93bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 29 deletions.
27 changes: 0 additions & 27 deletions scripts/cover.sh

This file was deleted.

13 changes: 11 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,29 @@ deps =
protobuf>=3.0.0a3
setenv =
PYTHONPATH = {toxinidir}/_testing
covercmd =
nosetests \
--ignore-files=run_system_test\.py \
--with-coverage \
--cover-package=gcloud \
--cover-erase \
--cover-tests \
--cover-branches \
--nocapture

[testenv:cover]
basepython =
python2.7
commands =
{toxinidir}/scripts/cover.sh --cover-min-percentage=100
{[testenv]covercmd} --cover-min-percentage=100
deps =
{[testenv]deps}
coverage

[testenv:coveralls]
basepython = {[testenv:cover]basepython}
commands =
{toxinidir}/scripts/cover.sh
{[testenv]covercmd}
coveralls
deps =
{[testenv:cover]deps}
Expand Down

0 comments on commit 40d93bc

Please sign in to comment.