Skip to content

Commit 9ee1995

Browse files
author
Jon Wayne Parrott
committed
Fix build
Change-Id: I67f0fadbc876e3fece02ba64eea1bd73330993ba
1 parent 1ff2670 commit 9ee1995

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

nox.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def run_tests_in_sesssion(
165165
"""
166166
session.interpreter = interpreter
167167
session.install(REPO_TOOLS_REQ)
168-
session.install('-r', 'requirements-dev.txt')
168+
session.install('-r', 'testing/requirements-dev.txt')
169169

170170
if use_appengine:
171171
setup_appengine(session)
@@ -294,10 +294,10 @@ def session_reqrollup(session):
294294
"""
295295
requirements = set()
296296
requirements_files = list(list_files('.', 'requirements*.txt'))
297-
requirements_files.append('./requirements-dev.in')
297+
requirements_files.append('./testing/requirements-dev.in')
298298

299299
for filename in requirements_files:
300-
if filename == './requirements-dev.txt':
300+
if filename == './testing/requirements-dev.txt':
301301
continue
302302

303303
with open(filename, 'r') as f:
@@ -315,7 +315,7 @@ def mark_if_necessary(requirement):
315315
requirements = [
316316
mark_if_necessary(requirement) for requirement in requirements]
317317

318-
with open('requirements-dev.txt', 'w') as f:
318+
with open('testing/requirements-dev.txt', 'w') as f:
319319
f.write('# This file is generated by nox -s reqrollup. Do not edit.\n')
320320
for requirement in sorted(requirements, key=lambda s: s.lower()):
321321
if not requirement.startswith('#'):

scripts/travis.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
#!/bin/bash
22

3-
# Decrypt secrets if not on an external PR.
3+
# Decrypt secrets and run tests if not on an external PR.
44
if [[ $TRAVIS_SECURE_ENV_VARS == "true" ]]; then
55
scripts/decrypt-secrets.sh "$SECRETS_PASSWORD"
6-
fi
7-
8-
if [[ $TRAVIS_SECURE_ENV_VARS == "true" ]]; then
9-
source ${TRAVIS_BUILD_DIR}/testing/test-env.sh;
10-
nox --stop-on-first-error -s lint travis;
6+
source ${TRAVIS_BUILD_DIR}/testing/test-env.sh;
7+
export GOOGLE_APPLICATION_CREDENTIALS=${TRAVIS_BUILD_DIR}/testing/service-account.json
8+
nox --stop-on-first-error -s lint travis;
119
else
1210
# only run lint on external PRs
1311
echo 'External PR: only running lint.'

0 commit comments

Comments
 (0)