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
·13 lines (12 loc) · 486 Bytes
/
Copy pathtravis.sh
File metadata and controls
executable file
·13 lines (12 loc) · 486 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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
nox --stop-on-first-error -s lint travis;
else
# only run lint on external PRs
echo 'External PR: only running lint.'
nox --stop-on-first-error -s lint;
fi