From bc97ee7a4081a08cd306cae598e4916bc5c67f8c Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Tue, 23 Jun 2015 12:06:43 -0700 Subject: [PATCH] Removing cover-min-percentage=100 from coveralls. Fixes #939. --- scripts/cover.sh | 20 ++++++++++++++++++++ tox.ini | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100755 scripts/cover.sh diff --git a/scripts/cover.sh b/scripts/cover.sh new file mode 100755 index 000000000000..2fd8ec4be36a --- /dev/null +++ b/scripts/cover.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# Copyright 2015 Google Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -ev + +nosetests --with-xunit --with-xcoverage --cover-package=gcloud \ +--nocapture --cover-erase --cover-tests --cover-branches ${@} diff --git a/tox.ini b/tox.ini index a9cd918bf6b5..7ba64253c22b 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ deps = basepython = python2.7 commands = - nosetests --with-xunit --with-xcoverage --cover-package=gcloud --nocapture --cover-erase --cover-tests --cover-branches --cover-min-percentage=100 + {toxinidir}/scripts/cover.sh --cover-min-percentage=100 deps = {[testenv]deps} coverage @@ -25,7 +25,7 @@ deps = [testenv:coveralls] basepython = {[testenv:cover]basepython} commands = - {[testenv:cover]commands} + {toxinidir}/scripts/cover.sh coveralls deps = {[testenv:cover]deps}