Cache google cloud sdk on travis
@@ -3,6 +3,7 @@ language: android
cache:
directories:
- "$HOME/.m2"
+ - "$HOME/google-cloud-sdk/"
env:
- PATH=${HOME}/google-cloud-sdk/bin:$PATH CLOUDSDK_CORE_DISABLE_PROMPTS=1
before_install:
@@ -10,7 +11,9 @@ before_install:
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- echo $GCLOUD_SERVICE_KEY | base64 --decode --ignore-garbage > ${HOME}/gcloud-service-key.json
- - curl https://sdk.cloud.google.com | bash
+ - if [ ! -d ${HOME}/google-cloud-sdk ]; then
+ curl https://sdk.cloud.google.com | bash;
+ fi
- gcloud auth activate-service-account --key-file ${HOME}/gcloud-service-key.json
- gcloud components update
- gcloud config set project lottie-snapshots
