Travis automatically runs tests whenever a github repo changes. To have Travis automatically run tests on your forked copy of this repo:
- Fork this repo on GitHub.
- Visit the Google Developers Console and choose an existing project or create a new project.
- Under
APIs & auth, enableApp Engine Admin APIandGoogle Cloud Build API - Under
APIs & auth, chooseCredentials. - Click
Add credentials, and then clickService account. - Select
New service account, assign a name, and under Role, addProject>Editor - Under
Key type, chooseJSON, and then clickCreate. A json credential file will be downloaded to your computer. - Visit Travis and turn on Travis for your new forked repo.
- Go back to the Travis home page, click on your
repo, then click on
Settings. - Under Environment Variables, set
GOOGLE_PROJECT_IDto the project id for the project you created or chose in step 2. Also setTAGto a version name you want to use for e2e testing. Put a service account json file in a GCS bucket with a secure permission and setSERVICE_ACCOUNT_JSONenvvar to the path of the json file. - Base-64 encode the json file you downloaded in step 5. On unix machines,
this can be done with a command like
base64 -w 0 < my-test-bf4af540ca4c.json. - Under Environment Variables, set
GOOGLE_CREDENTIALS_BASE64to the base64-encoded json from step 7. Be sure te leaveDisplay value in build logswitched OFF.