diff options
author | John Wiegley <johnw@newartisans.com> | 2007-06-08 04:13:07 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:39:08 -0400 |
commit | ec850814fdd6424db791ef79cab82eb2a2e5afbe (patch) | |
tree | d7ea390cd77424f9aa787b7259f40c5ccf86d7a7 | |
parent | 808aa5c06436b5eab1e829128cb613628e594e47 (diff) | |
download | fork-ledger-ec850814fdd6424db791ef79cab82eb2a2e5afbe.tar.gz fork-ledger-ec850814fdd6424db791ef79cab82eb2a2e5afbe.tar.bz2 fork-ledger-ec850814fdd6424db791ef79cab82eb2a2e5afbe.zip |
r383@user1022: johnw | 2007-06-01 22:30:25 -0400
Added buildbot master config file
-rwxr-xr-x | buildbot.cfg | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/buildbot.cfg b/buildbot.cfg new file mode 100755 index 00000000..506b8f50 --- /dev/null +++ b/buildbot.cfg @@ -0,0 +1,99 @@ +#! /usr/bin/python + +from buildbot.changes.svnpoller import SVNPoller +from buildbot.steps.source import SVN +from buildbot.process.factory import GNUAutoconf, s +from buildbot.status import html, mail, words +from buildbot import scheduler, locks + +# This is a list of everyone who has volunteered to build Ledger +slaves = [ + (("johnw-ppc", "XXXXXXXX"), "darwin-ppc"), + (("johnw-x86", "XXXXXXXX"), "darwin-x86") +] + +repository = "https://ledger.svn.sourceforge.net/svnroot/ledger/trunk" + +c = { + 'bots': [item[0] for item in slaves], + 'sources': [SVNPoller(svnbin="/usr/bin/svn", svnurl=repository)], + 'builders': [], + 'schedulers': [], + 'status': [], + 'slavePortnum': 8007 +} + + +# Define all of the build targets that need testing on each platform + +MY_CPPFLAGS = "-I/sw/include -I/opt/include -I/usr/local/include" +MY_LDFLAGS = "-L/sw/lib -L/opt/lib -L/usr/local/lib" +MY_FLAGS = "CPPFLAGS=\"%s\" LDFLAGS=\"%s\"" % (MY_CPPFLAGS, MY_LDFLAGS) + +svnsource = s(SVN, svnurl=repository, mode="clobber") + +builders = [] +builders.append({ + 'name': 'distcheck', + 'factory': GNUAutoconf(svnsource, + configure="chmod -R u+w .; ./acprep --local", + compile=None, + test=("make %s distcheck" % MY_FLAGS)) +}) +builders.append({ + 'name': 'normal', + 'factory': GNUAutoconf(svnsource, + configure="./acprep --local", + test="make fullcheck") +}) +builders.append({ + 'name': 'python', + 'factory': GNUAutoconf(svnsource, + configure="./acprep --local --python", + test="make fullcheck") +}) +builders.append({ + 'name': 'debug', + 'factory': GNUAutoconf(svnsource, + configure="./acprep --local --debug", + test="make fullcheck") +}) +builders.append({ + 'name': 'debug-python', + 'factory': GNUAutoconf(svnsource, + configure="./acprep --local --debug --python", + test="make fullcheck") +}) + + +# Add a builder for each build target on every platform + +slow_lock = locks.SlaveLock("cpu", maxCount = 1) + +for builder in builders: + for slave, arch in slaves: + c['builders'].append({ + 'name': arch + '-' + builder['name'], + 'slavename': slave[0], + 'builddir': arch + '-' + builder['name'], + 'factory': builder['factory'], + 'locks': [slow_lock] + }) + + +c['schedulers'] = [ + scheduler.Scheduler("full", None, 60, + [b['name'] for b in c['builders']]) +] + +c['status'] = [ + html.Waterfall(http_port=9090, allowForce=False), + + mail.MailNotifier(fromaddr="johnw@newartisans.com", + extraRecipients=["jwiegley@gmail.com"]), + + words.IRC("irc.freenode.net", "ledgerbot", allowForce=False, + channels=["#ledger"]) +] + +BuildmasterConfig = c |