Skip to content

Commit

Permalink
Skipping system tests when credentials env. var is unset. (googleapis…
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes authored and landrito committed Aug 22, 2017
1 parent 66d313a commit 262f55a
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
jobs:
build:
docker:
- image: googleapis/nox:0.11.2
- image: googleapis/nox:0.17.0
steps:
- checkout
- run:
Expand Down
2 changes: 1 addition & 1 deletion appveyor/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# pip will build them from source using the MSVC compiler matching the
# target Python version and architecture
wheel
nox-automation==0.11.2
nox-automation>=0.17.0
2 changes: 1 addition & 1 deletion bigquery/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def system_tests(session, python_version):

# Sanity check: Only run system tests if the environment variable is set.
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
return
session.skip('Credentials must be set via environment variable.')

# Run the system tests against latest Python 2 and Python 3 only.
session.interpreter = 'python{}'.format(python_version)
Expand Down
2 changes: 1 addition & 1 deletion bigtable/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def system_tests(session, python_version):

# Sanity check: Only run system tests if the environment variable is set.
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
return
session.skip('Credentials must be set via environment variable.')

# Run the system tests against latest Python 2 and Python 3 only.
session.interpreter = 'python{}'.format(python_version)
Expand Down
4 changes: 2 additions & 2 deletions datastore/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def system_tests(session, python_version):

# Sanity check: Only run system tests if the environment variable is set.
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
return
session.skip('Credentials must be set via environment variable.')

# Run the system tests against latest Python 2 and Python 3 only.
session.interpreter = 'python{}'.format(python_version)
Expand All @@ -70,7 +70,7 @@ def doctests(session):

# Sanity check: Only run system tests if the environment variable is set.
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
return
session.skip('Credentials must be set via environment variable.')

# Doctests run against Python 3.6 only.
# It is difficult to make doctests run against both Python 2 and Python 3
Expand Down
2 changes: 1 addition & 1 deletion error_reporting/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def system_tests(session, python_version):

# Sanity check: Only run system tests if the environment variable is set.
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
return
session.skip('Credentials must be set via environment variable.')

# Run the system tests against latest Python 2 and Python 3 only.
session.interpreter = 'python{}'.format(python_version)
Expand Down
2 changes: 1 addition & 1 deletion language/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def system_tests(session, python_version):

# Sanity check: Only run system tests if the environment variable is set.
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
return
session.skip('Credentials must be set via environment variable.')

# Run the system tests against latest Python 2 and Python 3 only.
session.interpreter = 'python{}'.format(python_version)
Expand Down
2 changes: 1 addition & 1 deletion logging/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def system_tests(session, python_version):

# Sanity check: Only run system tests if the environment variable is set.
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
return
session.skip('Credentials must be set via environment variable.')

# Run the system tests against latest Python 2 and Python 3 only.
session.interpreter = 'python{}'.format(python_version)
Expand Down
2 changes: 1 addition & 1 deletion monitoring/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def system_tests(session, python_version):

# Sanity check: Only run system tests if the environment variable is set.
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
return
session.skip('Credentials must be set via environment variable.')

# Run the system tests against latest Python 2 and Python 3 only.
session.interpreter = 'python{}'.format(python_version)
Expand Down
2 changes: 1 addition & 1 deletion pubsub/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def system_tests(session, python_version):

# Sanity check: Only run system tests if the environment variable is set.
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
return
session.skip('Credentials must be set via environment variable.')

# Run the system tests against latest Python 2 and Python 3 only.
session.interpreter = 'python{}'.format(python_version)
Expand Down
2 changes: 1 addition & 1 deletion spanner/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def system_tests(session, python_version):

# Sanity check: Only run system tests if the environment variable is set.
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
return
session.skip('Credentials must be set via environment variable.')

# Run the system tests against latest Python 2 and Python 3 only.
session.interpreter = 'python{}'.format(python_version)
Expand Down
2 changes: 1 addition & 1 deletion speech/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def system_tests(session, python_version):

# Sanity check: Only run system tests if the environment variable is set.
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
return
session.skip('Credentials must be set via environment variable.')

# Run the system tests against latest Python 2 and Python 3 only.
session.interpreter = 'python{}'.format(python_version)
Expand Down
2 changes: 1 addition & 1 deletion storage/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def system_tests(session, python_version):

# Sanity check: Only run system tests if the environment variable is set.
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
return
session.skip('Credentials must be set via environment variable.')

# Run the system tests against latest Python 2 and Python 3 only.
session.interpreter = 'python{}'.format(python_version)
Expand Down
2 changes: 1 addition & 1 deletion translate/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def system_tests(session, python_version):

# Sanity check: Only run system tests if the environment variable is set.
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
return
session.skip('Credentials must be set via environment variable.')

# Run the system tests against latest Python 2 and Python 3 only.
session.interpreter = 'python{}'.format(python_version)
Expand Down
4 changes: 2 additions & 2 deletions vision/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def system_tests(session, python_version):

# Sanity check: Only run system tests if the environment variable is set.
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
return
session.skip('Credentials must be set via environment variable.')

# Run unit tests against all supported versions of Python.
session.interpreter = 'python{}'.format(python_version)
Expand All @@ -67,7 +67,7 @@ def system_tests_manual_layer(session, python_version):

# Sanity check: Only run system tests if the environment variable is set.
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''):
return
session.skip('Credentials must be set via environment variable.')

# Run unit tests against all supported versions of Python.
session.interpreter = 'python{}'.format(python_version)
Expand Down

0 comments on commit 262f55a

Please sign in to comment.