Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.
/ trigger-travis Public archive
forked from ijmad/trigger-travis

A small set of scripts to link GitHub, Travis & Heroku together in a Microservices environment where we want to run E2E tests.

Notifications You must be signed in to change notification settings

alphagov/trigger-travis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trigger-travis

Requirements

  • Python

Developer Configuration

  • Set PYTHONPATH env var to "src/"
  • Set TRAVIS_TOKEN env var to your Travis API token
  • Set TRAVIS_ENDPOINT to https://api.travis-ci.com/ if using Travis Pro. It is https://api.travis-ci.org/ by default.

Developer Set-Up

virtualenv env
source env/bin/activate
pip install -r requirements.txt

Development Server

src/dev_server.py

API

http://server/trigger/<repo_name>

For example:

http://server/trigger/alphagov/example-project

Can only build the master at the moment, but support for other branches will be added.

Example

Trigger your end-to-end tests to run after Heroku is deployed.

  1. Deploy this app to Heroku.
  2. Configure it to trigger your end-to-end tests CI build on Travis (by setting a Travis token and endpoint)
  3. On the Heroku apps involved in the test suite, do the following:
heroku addons:add deployhooks:http --url=https://tigger-your-travis.herokuapp.com/trigger/github_org/end-to-end-tests-repo

About

A small set of scripts to link GitHub, Travis & Heroku together in a Microservices environment where we want to run E2E tests.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%