Buildbot
Contents |
Public access
Installing
We use buildbot for our build machines. After the nightly build, the build machines must upload their packages to the packages mirror. All releases must be taken from this location; never release a build from a developer machine.
Ubuntu 10.04
apt-get install buildbot mkdir -p /srv/buildbot cd /srv/buildbot
Mac OS X (10.8)
Install using MacPorts.
sudo port install buildbot-slave
Windows XP 32-bit
Download and install:
- python-2.7.3.msi
- Twisted-13.0.0.win32-py2.7.msi
- pywin32-218.win32-py2.7.exe
- zope.interface-3.6.7.win32-py2.7.exe
Append to the PATH environment variable:
;C:\Python27;C:\Python27\Scripts
Then download and extract buildbot-0.8.0.zip, and run:
python setup.py build python setup.py install
Finally, setup the slave:
mkdir C:\Buildbot cd C:\Buildbot
CentOS 5.6
Run all commands as root. First, install prerequisites (maybe this is not needed):
yum install python-devel python-crypto pyOpenSSL zope
Upgrade Python:
yum install gcc zlib-devel wget http://www.python.org/ftp/python/2.5.5/Python-2.5.5.tgz tar xfvz Python-2.5.5.tgz cd Python-2.5.5 ./configure –with-zlib=/usr/include make make install
Install Twisted:
wget http://tmrc.mit.edu/mirror/twisted/Twisted/8.1/Twisted-8.1.0.tar.bz2 tar jxvf Twisted-8.1.0.tar.bz2 cd Twisted-8.1.0 python2.5 setup.py install
Install zope.interface:
wget http://pypi.python.org/packages/source/z/zope.interface/zope.interface-3.6.1.tar.gz#md5=7a895181b8d10be4a7e9a3afa13cd3be tar xfvz zope.interface-3.6.1.tar.gz cd zope.interface-3.6.1 python2.5 setup.py install
Install Buildbot:
wget http://pypi.python.org/packages/source/b/buildbot-slave/buildbot-slave-0.8.3.tar.gz#md5=cb9d9d0c2d925e51bb3c8d62083d77a7 tar xvfz buildbot-slave-0.8.3.tar.gz cd buildbot-slave-0.8.3 python2.5 setup.py install
CentOS 6.0
Run all commands as root. First, install prerequisites (maybe this is not needed):
yum install python-devel python-crypto pyOpenSSL zope
Install Twisted:
wget http://tmrc.mit.edu/mirror/twisted/Twisted/8.1/Twisted-8.1.0.tar.bz2 tar jxvf Twisted-8.1.0.tar.bz2 cd Twisted-8.1.0 python setup.py install
Install zope.interface:
wget http://pypi.python.org/packages/source/z/zope.interface/zope.interface-3.6.1.tar.gz#md5=7a895181b8d10be4a7e9a3afa13cd3be tar xfvz zope.interface-3.6.1.tar.gz cd zope.interface-3.6.1 python setup.py install
Install Buildbot:
wget http://pypi.python.org/packages/source/b/buildbot-slave/buildbot-slave-0.8.3.tar.gz#md5=cb9d9d0c2d925e51bb3c8d62083d77a7 tar xvfz buildbot-slave-0.8.3.tar.gz cd buildbot-slave-0.8.3 python setup.py install
Running
buildbot create-slave synergy buildbot.synergy-foss.org:9989 <bot-name> <bot-password> buildbot start synergy
Alternatively, if running this after the Buildbot binary split, you may need to use buildslave instead:
buildslave create-slave synergy buildbot.synergy-foss.org:9989 <bot-name> <bot-password> buildslave start synergy
Startup
Mac OS X
Add the following .plist to: ~/Library/LaunchAgents/
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>buildslave</string> <key>ProgramArguments</key> <array> <string>/opt/local/bin/buildslave</string> <string>start</string> <string>/path/to/buildbot/synergy</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist>
Run this command to load the .plist (run as normal user).
launchctl load ~/Library/LaunchAgents/buildslave.plist