Skip to content

Instantly share code, notes, and snippets.

@kevinpiac
Created November 14, 2018 11:57
Show Gist options
  • Save kevinpiac/f713df68f7145fb58449dff9e1b21e78 to your computer and use it in GitHub Desktop.
Save kevinpiac/f713df68f7145fb58449dff9e1b21e78 to your computer and use it in GitHub Desktop.
Install google cloud sdk (gcloud) on travis, gitlab and other CI providers
before_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
- source $HOME/google-cloud-sdk/path.bash.inc
- gcloud version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment