[Checkins] SVN: Sandbox/adamg/zope.wineggbuilder/trunk/master.cfg added BB master.cfg
Adam Groszer
agroszer at gmail.com
Sun Jun 20 07:12:44 EDT 2010
Log message for revision 113713:
added BB master.cfg
Changed:
A Sandbox/adamg/zope.wineggbuilder/trunk/master.cfg
-=-
Added: Sandbox/adamg/zope.wineggbuilder/trunk/master.cfg
===================================================================
--- Sandbox/adamg/zope.wineggbuilder/trunk/master.cfg (rev 0)
+++ Sandbox/adamg/zope.wineggbuilder/trunk/master.cfg 2010-06-20 11:12:44 UTC (rev 113713)
@@ -0,0 +1,112 @@
+# -*- python -*-
+# ex: set syntax=python:
+
+import sys
+import os.path
+import subprocess
+from twisted.python import log
+
+from buildbot import locks
+
+from buildbot.changes.svnpoller import SVNPoller, split_file_branches
+from buildbot.steps.source import SVN
+from buildbot.steps.shell import Compile
+from buildbot.process.factory import BuildFactory
+
+from buildbot.process.base import Build
+from buildbot.status import html
+from buildbot.scheduler import Scheduler, Nightly, Triggerable
+from buildbot.steps.trigger import Trigger
+
+# This is a sample buildmaster config file. It must be installed as
+# 'master.cfg' in your buildmaster's base directory (although the filename
+# can be changed with the --basedir option to 'mktap buildbot master').
+
+# It has one job: define a dictionary named BuildmasterConfig. This
+# dictionary has a variety of keys to control different aspects of the
+# buildmaster. They are documented in docs/config.xhtml .
+
+
+# This is the dictionary that the buildmaster pays attention to. We also use
+# a shorter alias to save typing.
+c = BuildmasterConfig = {}
+
+####### DB URL
+
+# This specifies what database buildbot uses to store change and scheduler
+# state
+c['db_url'] = "sqlite:///state.sqlite"
+
+####### BUILDSLAVES
+
+# the 'slaves' list defines the set of allowable buildslaves. Each element is
+# a BuildSlave object, which is created with bot-name, bot-password. These
+# correspond to values given to the buildslave's mktap invocation.
+from buildbot.buildslave import BuildSlave
+c['slaves'] = [BuildSlave("local", "localpwd", max_builds=2)]
+
+# to limit to two concurrent builds on a slave, use
+# c['slaves'] = [BuildSlave("bot1name", "bot1passwd", max_builds=2)]
+
+
+######################################
+# egg building
+
+def makeEGGfactory():
+ svn_url = 'svn://svn.zope.org/repos/main/Sandbox/adamg/zope.wineggbuilder/trunk'
+
+ f = BuildFactory()
+ f.addStep(SVN(svnurl=svn_url, mode='clobber'))
+
+
+ f.addStep(Compile(name='bootstrap',
+ command='python bootstrap.py',
+ description=['bootstrapping'],
+ descriptionDone=['bootstrap']))
+
+ f.addStep(Compile(name="buildout",
+ command="bin\\buildout.exe",
+ description=['buildout'],
+ descriptionDone=['buildout']))
+
+ f.addStep(Compile(name="release eggs",
+ command="bin\\build.exe -s rackspace.ini",
+ description=['releasing eggs'],
+ descriptionDone=['release eggs'],
+ timeout=12000))
+
+ f.treeStableTimer = 300
+ return f
+
+def setupEggBuild(slow_lock):
+ c['builders'].append({
+ 'name': 'wineggbuilder',
+ 'slavename': 'local',
+ 'builddir': 'wineggbuilder',
+ 'factory': makeEGGfactory(),
+ 'locks': [slow_lock],
+ })
+
+ c['schedulers'].append(Nightly(
+ "Nightly egg build", ['wineggbuilder'], hour=[3],
+ branch="trunk"))
+
+######################################
+
+
+slow_lock = locks.SlaveLock("cpu", maxCount=2)
+
+c['schedulers'] = []
+c['builders'] = []
+
+setupEggBuild(slow_lock)
+
+c['status'] = []
+#c['status'].append(html.WebStatus(http_port=8010, allowForce=True))
+c['status'].append(html.WebStatus(http_port=8010, allowForce=False))
+
+
+c['projectName'] = "Zope wineggbuilder and windows buildbot"
+c['projectURL'] = "http://www.zope.org/"
+c['buildbotURL'] = "http://winbot.zope.org/"
+c['slavePortnum'] = "tcp:8989:interface=127.0.0.1"
Property changes on: Sandbox/adamg/zope.wineggbuilder/trunk/master.cfg
___________________________________________________________________
Added: svn:keywords
+ Date Author Id Revision
Added: svn:eol-style
+ native
More information about the checkins
mailing list