User Tools

Site Tools


dev:testing:buildbot

This is an old revision of the document!


Buildbot master and slave

buildbot is a continuous integration server that checks the quality of the OpenSRF and Evergreen build trees after every commit.

The build results are visible at http://testing.evergreen-ils.org/buildbot

Setting up the buildbot master

  1. easy_install buildbot (note that some patches are necessary for improved pylint support)
    1. Create the buildmaster (skip this if you're just setting up a build slave):
    2. adduser buildmaster
    3. su - buildmaster
    4. buildbot create-master
    5. cp OpenSRF/examples/buildbot.cfg /home/buildmaster/master.cfg
    6. set slavePortnum
    7. buildbot start

Setting up the buildbot slave

If you want to contribute a buildbot slave to the testing pool, contact Dan Scott for the port, buildslave name, and buildslave password that you should use to connect to the buildmaster.

Firewall prerequisites

Your buildbot slave needs to be able to initiate an outbound connection to a port on testing.evergreen-ils.org, but does not need to allow any inbound connections (other than for your own administrative purposes, naturally!).

Steps

  1. Install subversion - it's a prerequisite for actually running the builds once the slave is up and running.
  2. Download OpenSRF.
    1. (OpenSRF buildslave): Just install the prerequisites from OpenSRF's Makefile.install to satisfy build dependencies.
    2. (Evergreen buildslave): Also configure, build, and install OpenSRF itself.
  3. (Evergreen buildslave): Download Evergreen and install the prerequisites from the Makefile.install
  4. easy_install buildbot-slave
  5. Install pylint (on Debian, "aptitude –without-recommends pylint" to avoid X deps)
  6. Create the buildslave (should be slave specific, like "openslave" or "egslave"):
    1. adduser openslave
    2. su - openslave
    3. buildslave create-slave opensrf-slave localhost:9999 opensrf-slave XXX
    4. Edit opensrf-slave/info/admin and change the administrator name / email address to your own
    5. buildslave start opensrf-slave
dev/testing/buildbot.1299255895.txt.gz · Last modified: 2022/02/10 13:34 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.