-
Notifications
You must be signed in to change notification settings - Fork 0
Buildbot
After changing the build environment, test packages on Supported Systems.
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.
Install using MacPorts.
sudo port install buildbot-slave
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
;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
apt-get install buildbot
sudo yum install buildbot-slave
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
buildbot create-slave synergy buildbot.synergy-project.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-project.org:9989 <bot-name> <bot-password> buildslave start synergy
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