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

Latest commit

 

History

History
32 lines (30 loc) · 1.67 KB

TRAVIS.md

File metadata and controls

32 lines (30 loc) · 1.67 KB

Running Tests on Travis

Travis automatically runs tests whenever a github repo changes. To have Travis automatically run tests on your forked copy of this repo:

  1. Fork this repo on GitHub.
  2. Visit the Google Developers Console and choose an existing project or create a new project.
  3. Under APIs & auth, enable App Engine Admin API and Google Cloud Build API
  4. Under APIs & auth, choose Credentials.
  5. Click Add credentials, and then click Service account.
  6. Select New service account, assign a name, and under Role, add Project > Editor
  7. Under Key type, choose JSON, and then click Create. A json credential file will be downloaded to your computer.
  8. Visit Travis and turn on Travis for your new forked repo.
  9. Go back to the Travis home page, click on your repo, then click on Settings.
  10. Under Environment Variables, set GOOGLE_PROJECT_ID to the project id for the project you created or chose in step 2. Also set TAG to 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 set SERVICE_ACCOUNT_JSON envvar to the path of the json file.
  11. 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.
  12. Under Environment Variables, set GOOGLE_CREDENTIALS_BASE64 to the base64-encoded json from step 7. Be sure te leave Display value in build log switched OFF.