Install Git post-receive hooks to trigger post events
Review Request #10040 — Created June 26, 2018 and submitted — Latest diff uploaded
RB Gateway is now capable of installing post-receive hooks in a Git
repository that will executerb-gateway trigger-webhooks
with the
appropriate arguments to cause apush
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) runsgo test
on the
integration tests which look for this environment variable. These can be
run viamake integration-tests
. Regular tests should now be ran via
make test
, asgo 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 ./...
.