Make bot tests portable to also run on Windows (#7954)

This commit is contained in:
Michael Goderbauer
2017-02-08 10:05:36 -08:00
committed by GitHub
parent d89f438699
commit be99a04dac
7 changed files with 201 additions and 86 deletions

17
dev/bots/travis_setup.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
set -e
echo $KEY_FILE | base64 --decode > ../gcloud_key_file.json
set -x
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
# run pub get in all the repo packages
./bin/flutter update-packages