Install Git post-receive hooks to trigger post events

Review Request #10040 — Created June 26, 2018 and submitted — Latest diff uploaded

Information

rb-gateway
master
c4fe1ea...

Reviewers

RB Gateway is now capable of installing post-receive hooks in a Git
repository that will execute rb-gateway trigger-webhooks with the
appropriate arguments to cause a push event to occur.

There is now integration test support which (1) builds RB Gateway into a
tmp directory, (2) exports an environment variable pointing to this
location so that tests can find it, and (3) runs go test on the
integration tests which look for this environment variable. These can be
run via make integration-tests. Regular tests should now be ran via
make test, as go test ./... will trigger the integration test suite
and fail (because it has not been set up properly).

Co-authored-by: Florie Cai floriecai@hotmail.com

  • Ran unit tests.
  • Ran integration tests.
  • Ran go fmt ./....
    Loading...