forked from GoogleCloudPlatform/python-docs-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtravis.sh
More file actions
executable file
·14 lines (13 loc) · 614 Bytes
/
Copy pathtravis.sh
File metadata and controls
executable file
·14 lines (13 loc) · 614 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# Decrypt secrets and run tests if not on an external PR.
if [[ $TRAVIS_SECURE_ENV_VARS == "true" ]]; then
scripts/decrypt-secrets.sh "$SECRETS_PASSWORD"
source ${TRAVIS_BUILD_DIR}/testing/test-env.sh;
export GOOGLE_APPLICATION_CREDENTIALS=${TRAVIS_BUILD_DIR}/testing/service-account.json
export GOOGLE_CLIENT_SECRETS=${TRAVIS_BUILD_DIR}/testing/client-secrets.json
nox --envdir /tmp --stop-on-first-error -s lint gae py35 -- -m "not slow";
else
# only run lint on external PRs
echo 'External PR: only running lint.'
nox --envdir /tmp --stop-on-first-error -s lint;
fi