Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
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
5 changes: 2 additions & 3 deletions 5 .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ install:
script:
- python2.7 scripts/run_unit_tests.py
- python3.4 scripts/run_unit_tests.py
- tox -e lint
- tox -e cover
- python scripts/run_unit_tests.py --tox-env cover
- tox -e lint
- tox -e system-tests
- tox -e system-tests3
- scripts/update_docs.sh

after_success:
- tox -e coveralls
- scripts/travis_coveralls.sh

cache:
directories:
Expand Down
29 changes: 29 additions & 0 deletions 29 scripts/travis_coveralls.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

# Copyright 2016 Google Inc.
#
# 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

##################################################
# Only run coveralls during a Travis push build. #
##################################################
if [[ "${TRAVIS_BRANCH}" == "master" ]] && \
[[ "${TRAVIS_PULL_REQUEST}" == "false" ]]; then
echo "Sending coverage report on a merge to master."
tox -e coveralls
else
echo "Not on a push build for master, skipping coveralls."
exit
fi
10 changes: 5 additions & 5 deletions 10 tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,14 @@ skip_install =
py27: True
py34: True
py35: True
isolated-cover: True
cover: True
passenv = TRAVIS* GOOGLE_CLOUD_*

[testenv:isolated-cover]
[testenv:cover]
commands =
python {toxinidir}/scripts/run_unit_tests.py {posargs} --tox-env cover

[testenv:cover]
[testenv:umbrella-cover]
basepython =
python2.7
commands =
Expand All @@ -138,13 +138,13 @@ deps =
pytest-cov

[testenv:coveralls]
basepython = {[testenv:cover]basepython}
basepython = {[testenv:umbrella-cover]basepython}
commands =
{[testing]covercmd}
coveralls
ignore_errors = True
deps =
{[testenv:cover]deps}
{[testenv:umbrella-cover]deps}
coveralls
passenv = {[testenv:system-tests]passenv}

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.