You are facing this problem because there is no interaction on Travis CI. Therefore, the installation of the script is blocked waiting for input, and Travis CI kills the assembly after 10 minutes.
The trick is to turn off the hints when installing the Google Cloud SDK. This can be done by setting the environment variable CLOUDSDK_CORE_DISABLE_PROMPTS to 1 .
Here is a sample recipe to add to your .travis.yml file (including caching it for subsequent subsequent builds):
cache: directories: - "$HOME/google-cloud-sdk/" script: - gcloud version || true - if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; export CLOUDSDK_CORE_DISABLE_PROMPTS=1; curl https://sdk.cloud.google.com | bash; fi
Hope this helps!
source share