From d038c32b438c753128945001e2b4e05b8742d312 Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Mon, 12 Sep 2016 15:47:27 -0700 Subject: [PATCH] Test commit: inspect the env. vars. Travis uses. This is sniffing around towards #2277, to see how much info we can use to restrict the tests we run. --- .travis.yml | 32 +------------------------------- scripts/print_travis.py | 9 +++++++++ 2 files changed, 10 insertions(+), 31 deletions(-) create mode 100644 scripts/print_travis.py diff --git a/.travis.yml b/.travis.yml index 596fd1386fcb7..0f4373b36c607 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,35 +1,5 @@ language: python sudo: false -install: - - pip install --upgrade pip - - pip install --upgrade tox - script: - - tox -e py27 - - tox -e py34 - - tox -e lint - - tox -e cover - - tox -e system-tests - - tox -e system-tests3 - - scripts/update_docs.sh - -after_success: - - tox -e coveralls - -deploy: - provider: pypi - user: silvolu - password: - secure: keSFPLzVj/yAAJ8kw4m+U5kpIiGqubpDqhcHPlGAvMohFMIO4D8ffgCqJdbhQshTtb/wiS5ajK1KNpEzq4BKD/5oRXuj/sIRTMENzX/azUXkT/bADLEGocyfE4/NAGQ9mcDOmHntjt7UUhYN6H87rgex22er4V1vD5tGf5Kc1HU= - on: - tags: true - repo: GoogleCloudPlatform/google-cloud-python - # until this is fixed: https://github.com/travis-ci/travis-ci/issues/1675 - all_branches: true - # 'bdist_wheel' builds disabled until #1879 et al. are resolved. - distributions: "sdist" - -cache: - directories: - - ${HOME}/.cache/pip + - python scripts/print_travis.py diff --git a/scripts/print_travis.py b/scripts/print_travis.py new file mode 100644 index 0000000000000..36af2862b1828 --- /dev/null +++ b/scripts/print_travis.py @@ -0,0 +1,9 @@ +import os + +our_keys = sorted(key for key in os.environ.keys() + if 'travis' in key.lower()) +if our_keys: + for key in our_keys: + print('%s: %s' % (key, os.getenv(key))) +else: + print('No keys here, sorry')