-
Notifications
You must be signed in to change notification settings - Fork 0
Adding a repo to Homu
#To enable Homu on a repo
-
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 tobuildbot_repos
. -
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".
-
Go to http://travis-ci.org and enable Travis for the repository
-
Add the following to the
.travis.yml
file:
notifications:
webhooks: http://build.servo.org:54856/travis
-
Run
salt servo-master state.highstate
on the buildbot master. Wait for any pending builds to finish. -
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).
-
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
-
See #1 above, also remove the entry from the list of buildbot repos.
-
See #3 and #4 above.
-
Remove the
build.servo.org:9010
hook. -
Land the PR, check that travis ran the build and buildbot didn't.