Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
sudo: false
language: python
python:
- "2.7"

cache:
directories:
- $HOME/gcloud/
env:
- PATH=$PATH:$HOME/gcloud/google-cloud-sdk/bin GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/client_secrets.json #Other environment variables on same line

before_install:
#ENCRYPT YOUR PRIVATE KEY (If you need authentication)
# 1. Install and login to the Travis CLI:
# $ gem install travis
# $ travis login
# 2. Move your json private key to client_secrets.json
# 3. Run:
# $ travis encrypt-file client_secrets.json --add
# 4. Commit changes:
# $ git add client_secrets.json.enc
# $ git commit client_secrets.json.enc .travis.yml

- if [ ! -d $HOME/gcloud/google-cloud-sdk ]; then
mkdir -p $HOME/gcloud &&
wget https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz --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
- gcloud -q components update
- if [ -a client_secrets.json ]; then
gcloud auth activate-service-account --key-file client_secrets.json;
fi

install:
#Add app specific setup here or additional gcloud components here
#Use -q to disable interaction
gcloud -q components update preview

script:
#Test and/or deploy your app with gcloud commands here!
gcloud -q preview app run app.yaml
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
appengine-helloworld-python
===========================

[![Build Status](https://travis-ci.org/GoogleCloudPlatform/appengine-helloworld-python.svg)](https://travis-ci.org/GoogleCloudPlatform/appengine-helloworld-python)

This is a simple Hello World application for Google App Engine (Python)
2 changes: 0 additions & 2 deletions app.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
application: your-app-id
version: 1
runtime: python27
api_version: 1
threadsafe: yes
Expand Down