Difference between revisions of "Build on Github Pull Request"

From GlueXWiki
Jump to: navigation, search
(Created page with "It is convenient to have a test build executed when a pull request is submitted to the sim-recon repository on GitHub, to make sure that the software still compiles correctly...")
(No difference)

Revision as of 14:03, 20 August 2015

It is convenient to have a test build executed when a pull request is submitted to the sim-recon repository on GitHub, to make sure that the software still compiles correctly with the proposed changes. This is done using the webhooks feature of github, which allows for the triggering of external programs when certain actions are performed on the GitHub repository.

  1. Create webhook
    • Go to repository: Settings -> Webhooks & Services -> Add webhook
    • Set URL to location of script on halldweb
    • Request JSON data
    • Only trigger on pull requests
  2. Set up script on halldweb
    • Install web.py and flup