flutter/travis/setup.sh
Adam Barth 6ca057e508 Update Flutter API docs continuously
The patch teaches Travis how to update our API docs continuously as we land
patches in master.
2015-12-05 14:23:18 -08:00

17 lines
349 B
Bash
Executable File

#!/bin/bash
set -e
if [ $TRAVIS_PULL_REQUEST = "false" ]; then
echo $KEY_FILE | base64 --decode > gcloud_key_file.json
fi
set -x
dart dev/update_packages.dart
(cd packages/unit; ../../bin/flutter cache populate)
if [ $TRAVIS_PULL_REQUEST = "false" ]; then
export CLOUDSDK_CORE_DISABLE_PROMPTS=1
curl https://sdk.cloud.google.com | bash
fi