Install Git post-receive hooks to trigger post events
Review Request #10040 — Created June 26, 2018 and submitted
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 ./...
.
Description | From | Last Updated |
---|---|---|
This would be a little cleaner to list all the phony targets once: .PHONY: build test integration-tests build: vendor go … |
david |
- Depends On:
- Change Summary:
-
Credit Florie
- Description:
-
RB Gateway is now capable of installing post-receive hooks in a Git
repository that will execute rb-gateway trigger-webhooks
with theappropriate 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 theintegration tests which look for this environment variable. These can be run via make integration-tests
. Regular tests should now be ran viamake test
, asgo test ./...
will trigger the integration test suiteand fail (because it has not been set up properly). + + Co-authored-by: Florie Cai floriecai@hotmail.com