From 4be730ac9a914c9b91e27a0ab6c4439fd67185cd Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 23 Jun 2016 11:56:20 -0700 Subject: [PATCH] Only download cloud SDK if we need it on Travis --- dev/bots/setup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev/bots/setup.sh b/dev/bots/setup.sh index 491a43cebc..89a30db5b8 100755 --- a/dev/bots/setup.sh +++ b/dev/bots/setup.sh @@ -5,8 +5,10 @@ echo $KEY_FILE | base64 --decode > ../gcloud_key_file.json set -x -export CLOUDSDK_CORE_DISABLE_PROMPTS=1 -curl https://sdk.cloud.google.com | bash +if [ -n "$TRAVIS" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then + export CLOUDSDK_CORE_DISABLE_PROMPTS=1 + curl https://sdk.cloud.google.com | bash +fi # disable analytics on the bots and download Flutter dependencies ./bin/flutter config --no-analytics