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
·16 lines (14 loc) · 508 Bytes
/
Copy pathtravis.sh
File metadata and controls
executable file
·16 lines (14 loc) · 508 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# Decrypt secrets if not on an external PR.
if [[ $TRAVIS_SECURE_ENV_VARS == "true" ]]; then
openssl aes-256-cbc -k "$secrets_password" -in secrets.tar.enc -out secrets.tar -d;
tar xvf secrets.tar;
fi
if [[ $TRAVIS_SECURE_ENV_VARS == "true" ]]; then
source ${TRAVIS_BUILD_DIR}/testing/resources/test-env.sh;
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