8000 Fixing travis · kler/python-docs-samples@b93b974 · GitHub
[go: up one dir, main page]

Skip to content

Commit b93b974

Browse files
author
Jon Wayne Parrott
committed
Fixing travis
Change-Id: I5210d1d6476c4526e3af7cb7125066e4ce20d5c9
1 parent bf71918 commit b93b974

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

scripts/travis.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# Decrypt secrets if not on an external PR.
4+
if [[ $TRAVIS_SECURE_ENV_VARS == "true" ]]; then
5+
openssl aes-256-cbc -k "$secrets_password" -in secrets.tar.enc -out secrets.tar -d;
6+
tar xvf secrets.tar;
7+
fi
8+
9+
if [[ $TRAVIS_SECURE_ENV_VARS == "true" ]]; then
10+
source ${TRAVIS_BUILD_DIR}/testing/resources/test-env.sh;
11+
nox --stop-on-first-error -s lint travis;
12+
else
13+
# only run lint on external PRs
14+
echo 'External PR: only running lint.'
15+
nox --stop-on-first-error -s lint;
16+
fi

0 commit comments

Comments
 (0)
0