Build on Github Pull Request

From GlueXWiki
Revision as of 14:03, 20 August 2015 by Sdobbs (Talk | contribs) (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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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