title: Installing gcloud on Travis CI
body: <p>I'm following this tutorial on how to use Travis CI with Google Cloud for Continuous Deployments: 
  <a href="https://cloud.google.com/solutions/continuous-delivery-with-travis-ci" rel="nofollow noreferrer">https://cloud.google.com/solutions/continuous-delivery-with-travis-ci</a></p>
  
  <p>When Travis builds, it tells me that the gcloud command is not found. Here's my .travis file:</p>
  
  <pre><code>sudo: false
  language: python
  cache:
    directories:
    - "$HOME/google-cloud-sdk/"
  env:
  - GAE_PYTHONPATH=${HOME}/.cache/google_appengine PATH=$PATH:${HOME}/google-cloud-sdk/bin
    PYTHONPATH=${PYTHONPATH}:${GAE_PYTHONPATH} CLOUDSDK_CORE_DISABLE_PROMPTS=1
  before_install:
  - openssl aes-256-cbc -K $encrypted_404aa45a170f_key -iv $encrypted_404aa45a170f_iv
    -in credentials.tar.gz.enc -out credentials.tar.gz -d
  - if [ ! -d "${GAE_PYTHONPATH}" ]; then python scripts/fetch_gae_sdk.py $(dirname
    "${GAE_PYTHONPATH}"); fi
  - if [ ! -d ${HOME}/google-cloud-sdk ]; then curl https://sdk.cloud.google.com | bash;
    fi
  - tar -xzf credentials.tar.gz
  - mkdir -p lib
  - gcloud auth activate-service-account --key-file client-secret.json
  install:
  - gcloud config set project continuous-deployment-192112
  - gcloud -q components update gae-python
  - pip install -r requirements.txt -t lib/
  script:
  - python test_main.py
  - gcloud -q preview app deploy app.yaml --promote
  - python e2e_test.py
  </code></pre>
  
  <p>This is the same file provided by the example repository from the tutorial. The line that fails is: </p>
  
  <p><code>- gcloud auth activate-service-account --key-file client-secret.json</code></p>
  
  <p>Even though it's already checked for the SDK and installed it if it isn't there. </p>
  
  <p>I've already tried adding <code>- source ~/.bash_profile</code> after the install, but this doesn't work.</p>
  
  <p>Am I missing a command somewhere?</p>