From d6c3e3b21d3c71ef0f788d38883fadc9dc046645 Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Mon, 30 Jan 2017 10:13:36 -0800 Subject: [PATCH 1/3] Test on 3.6 --- .travis.yml | 2 ++ tox.ini | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9fb1c171d..a5e00f66b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,8 @@ matrix: env: TOXENV=py34 - python: 3.5 env: TOXENV=py35 + - python: 3.6 + env: TOXENV=py36 - python: pypy env: TOXENV=pypy - python: 3.5 diff --git a/tox.ini b/tox.ini index 046520059..c26e94e31 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = lint,py27,py34,py35,pypy,cover +envlist = lint,py27,py34,py35,py36,pypy,cover [testenv] deps = From e521ac03ee32ec3f5b7bba63adf3a48c05079d32 Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Mon, 30 Jan 2017 10:37:09 -0800 Subject: [PATCH 2/3] Cutting more envs over to 3.6 --- .travis.yml | 10 +++++----- scripts/travis.sh | 3 +++ tox.ini | 12 ++++++------ 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index a5e00f66b..7100f2735 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,9 +2,9 @@ language: python sudo: false matrix: include: - - python: 3.5 + - python: 3.6 env: TOXENV=lint - - python: 3.5 + - python: 3.6 env: TOXENV=docs - python: 2.7 env: TOXENV=py27 @@ -16,10 +16,10 @@ matrix: env: TOXENV=py36 - python: pypy env: TOXENV=pypy - - python: 3.5 + - python: 3.6 env: TOXENV=cover - - python: 3.5 - env: TOXENV=py35-system SYSTEM_TEST=1 SKIP_APP_ENGINE_SYSTEM_TEST=1 + - python: 3.6 + env: TOXENV=py36-system SYSTEM_TEST=1 SKIP_APP_ENGINE_SYSTEM_TEST=1 - python: 2.7 env: TOXENV=py27-system SYSTEM_TEST=1 SKIP_APP_ENGINE_SYSTEM_TEST=1 cache: diff --git a/scripts/travis.sh b/scripts/travis.sh index 84a227a82..7359a0cbe 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh @@ -25,6 +25,9 @@ if [[ -n $SYSTEM_TEST ]]; then if [[ $TRAVIS_SECURE_ENV_VARS == "true" ]]; then echo 'Extracting secrets.' scripts/decrypt-secrets.sh "$SECRETS_PASSWORD" + # Prevent build failures from leaking our password. + # looking at you, Tox. + export SECRETS_PASSWORD="" else # This is an external PR, so just mark system tests as green. echo 'In system test but secrets are not available, skipping.' diff --git a/tox.ini b/tox.ini index c26e94e31..7580eb737 100644 --- a/tox.ini +++ b/tox.ini @@ -18,15 +18,15 @@ commands = py.test --cov=google.auth --cov=google.oauth2 --cov=tests {posargs:tests} [testenv:cover] -basepython = python3.5 +basepython = python3.6 commands = py.test --cov=google.auth --cov=google.oauth2 --cov=tests --cov-report= tests coverage report --show-missing --fail-under=100 deps = {[testenv]deps} -[testenv:py35-system] -basepython = python3.5 +[testenv:py36-system] +basepython = python3.6 changedir = {toxinidir}/system_tests commands = nox {posargs} @@ -52,7 +52,7 @@ passenv = CLOUD_SDK_ROOT [testenv:docgen] -basepython = python3.5 +basepython = python3.6 deps = {[testenv]deps} sphinx @@ -63,7 +63,7 @@ commands = sphinx-apidoc --output-dir docs/reference --separate --module-first google [testenv:docs] -basepython = python3.5 +basepython = python3.6 deps = {[testenv]deps} sphinx @@ -71,7 +71,7 @@ deps = commands = make -C docs html [testenv:lint] -basepython = python3.5 +basepython = python3.6 commands = python setup.py check --metadata --restructuredtext --strict flake8 \ From 56c383302c717b738b4240411d3d1b8ce23920ab Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Mon, 30 Jan 2017 10:49:32 -0800 Subject: [PATCH 3/3] Use 3.5 for lint --- .travis.yml | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7100f2735..dfc55e024 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: python sudo: false matrix: include: - - python: 3.6 + - python: 3.5 env: TOXENV=lint - python: 3.6 env: TOXENV=docs diff --git a/tox.ini b/tox.ini index 7580eb737..b91017f4a 100644 --- a/tox.ini +++ b/tox.ini @@ -71,7 +71,7 @@ deps = commands = make -C docs html [testenv:lint] -basepython = python3.6 +basepython = python3.5 commands = python setup.py check --metadata --restructuredtext --strict flake8 \