Skip to content

Adding a repo to Homu

Lars Bergstrom edited this page Sep 22, 2016 · 11 revisions

#To enable Homu on a repo

  1. Add the repo in the homu/cfg.toml by adding to the list as ('$owner', '$repo'). If the repo is built with Travis CI, add it to travis_repos; if built with Buildbot add it to buildbot_repos.

  2. Add a webhook in the "Webhooks & services" tab of the github admin panel for the repo.

  • Payload URL: http://build.servo.org:54856/github;
  • Content type: application/json;
  • Secret: gh-webhook-secret in /srv/pillar/homu.sls on the buildbot master;
  • Events: "Let me select individual events.", and tick "Pull Request", "Push", "Issue Comment", and "Status".
  1. Go to http://travis-ci.org and enable Travis for the repository

  2. Add the following to the .travis.yml file:

notifications:
  webhooks: http://build.servo.org:54856/travis
  1. Run salt servo-master state.highstate on the buildbot master. Wait for any pending builds to finish.

  2. Synchronize Homu. The new repo should appear at http://build.servo.org/homu/ now. Click it and then hit synchronize. It will trigger homu to grab data for existing PRs (otherwise it will only see new ones).

  3. Test by letting Homu integrate the PR for step 3. If it can successfully land the PR with the .travis.yml changes to enable Homu, you know it's all working. If necessary, check Homu's logs at /var/log/upstart/homu.log

Moving a repo from buildbot to travis

  1. See #1 above, also remove the entry from the list of buildbot repos.

  2. See #3 and #4 above.

  3. Remove the build.servo.org:9010 hook.

  4. Land the PR, check that travis ran the build and buildbot didn't.

Clone this wiki locally