• 
      

    Install Git post-receive hooks to trigger post events

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

    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 ./....
    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 david
    brennie
    brennie
    david
    1. 
        
    2. Makefile (Diff revision 1)
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
      Show all issues

      This would be a little cleaner to list all the phony targets once:

      .PHONY: build test integration-tests
      
      build: vendor
              go build
      
      vendor:
              dep ensure
      
      ...
      
    3. 
        
    brennie
    david
    1. Ship It!
    2. 
        
    brennie
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (97435b7)