Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
Work around two issues that broke the travis build.
Browse files Browse the repository at this point in the history
  • Loading branch information
SurferJeffAtGoogle committed Apr 29, 2016
1 parent ee58537 commit efa48fb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,22 @@ before_install:
--directory-prefix=$HOME/gcloud && cd $HOME/gcloud && tar xzf google-cloud-sdk.tar.gz
&& printf '\ny\n\ny\ny\n' | ./google-cloud-sdk/install.sh && cd $TRAVIS_BUILD_DIR;
fi
- mkdir -p lib
# Here we use the decrypted service account credentials to authenticate the command line tool
- gcloud auth activate-service-account --key-file ${GOOGLE_APPLICATION_CREDENTIALS}
install:
# Set the correct project to deploy to
- gcloud config set project ${GOOGLE_APP_ID}
# Install the AppEngine SDK
- gcloud -q components update gae-python
- gcloud -q components update
- gcloud info
# Have to wipe out the lib directory. See
# https://github.com/GoogleCloudPlatform/appengine-flask-skeleton/issues/1
- rm -rf appengine-python-flask/lib
- mkdir appengine-python-flask/lib
- pip install -r appengine-python-flask/requirements.txt -t appengine-python-flask/lib/
script:
# Deploy the app
- gcloud config set app/use_gsutil true
- gcloud -q preview app deploy appengine-python-flask/app.yaml --no-promote --version ${GOOGLE_APP_VERSION}
# Initialize it
- curl https://${GOOGLE_APP_VERSION}-dot-${GOOGLE_APP_ID}.appspot.com/init
Expand Down

0 comments on commit efa48fb

Please sign in to comment.