flutter/travis/setup.sh
Adam Barth 4aae718f85 Download sky_engine and sky_services from cloud storage
Downloading these packages from cloud storage simplifies our deployment
story because we can upload to cloud storage automatically from the
buildbot.

This patch also switches the responsibility for downloading the engine
artifacts to update_engine.sh. Centralizing this responsibility ensures
that the packages and the binaries are always in sync.
2016-02-20 13:25:01 -08:00

18 lines
379 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
# Download dependencies flutter
./bin/flutter --version
./bin/cache/dart-sdk/bin/dart ./dev/update_packages.dart
if [ $TRAVIS_PULL_REQUEST = "false" ]; then
export CLOUDSDK_CORE_DISABLE_PROMPTS=1
curl https://sdk.cloud.google.com | bash
fi