2 # ex: set syntax=python:
4 # This is a sample buildmaster config file. It must be installed as
5 # 'master.cfg' in your buildmaster's base directory (although the filename
6 # can be changed with the --basedir option to 'mktap buildbot master').
8 # It has one job: define a dictionary named BuildmasterConfig. This
9 # dictionary has a variety of keys to control different aspects of the
10 # buildmaster. They are documented in docs/config.xhtml .
13 # This is the dictionary that the buildmaster pays attention to. We also use
14 # a shorter alias to save typing.
15 c = BuildmasterConfig = {}
19 # the 'slaves' list defines the set of allowable buildslaves. Each element is
20 # a tuple of bot-name and bot-password. These correspond to values given to
21 # the buildslave's mktap invocation.
22 from buildbot.buildslave import BuildSlave
23 c['slaves'] = [BuildSlave("bithorizon", "bithorizon_passvoid")]
25 # to limit to two concurrent builds on a slave, use
26 # c['slaves'] = [BuildSlave("bot1name", "bot1passwd", max_builds=2)]
29 # 'slavePortnum' defines the TCP port to listen on. This must match the value
30 # configured into the buildslaves (with their --master option)
32 c['slavePortnum'] = 9989
36 # the 'change_source' setting tells the buildmaster how it should find out
37 # about source code changes. Any class which implements IChangeSource can be
38 # put here: there are several in buildbot/changes/*.py to choose from.
40 from buildbot.changes.pb import PBChangeSource
41 c['change_source'] = PBChangeSource()
43 # For example, if you had CVSToys installed on your repository, and your
44 # CVSROOT/freshcfg file had an entry like this:
45 #pb = ConfigurationSet([
46 # (None, None, None, PBService(userpass=('foo', 'bar'), port=4519)),
49 # then you could use the following buildmaster Change Source to subscribe to
50 # the FreshCVS daemon and be notified on every commit:
52 #from buildbot.changes.freshcvs import FreshCVSSource
53 #fc_source = FreshCVSSource("cvs.example.com", 4519, "foo", "bar")
54 #c['change_source'] = fc_source
56 # or, use a PBChangeSource, and then have your repository's commit script run
57 # 'buildbot sendchange', or use contrib/svn_buildbot.py, or
58 # contrib/arch_buildbot.py :
60 #from buildbot.changes.pb import PBChangeSource
61 #c['change_source'] = PBChangeSource()
66 ## configure the Schedulers
68 from buildbot.scheduler import Scheduler
70 c['schedulers'].append(Scheduler(name="all", branch=None,
72 builderNames=["buildbot-citadel"]))
77 # the 'builders' list defines the Builders. Each one is configured with a
78 # dictionary, using the following keys:
79 # name (required): the name used to describe this bilder
80 # slavename (required): which slave to use, must appear in c['bots']
81 # builddir (required): which subdirectory to run the builder in
82 # factory (required): a BuildFactory to define how the build is run
83 # periodicBuildTime (optional): if set, force a build every N seconds
85 # buildbot/process/factory.py provides several BuildFactory classes you can
86 # start with, which implement build processes for common targets (GNU
87 # autoconf projects, CPAN perl modules, etc). The factory.BuildFactory is the
88 # base class, and is configured with a series of BuildSteps. When the build
89 # is run, the appropriate buildslave is told to execute each Step in turn.
91 # the first BuildStep is typically responsible for obtaining a copy of the
92 # sources. There are source-obtaining Steps in buildbot/process/step.py for
93 # CVS, SVN, and others.
95 #cvsroot = ":pserver:anonymous@cvs.sourceforge.net:/cvsroot/buildbot"
96 #cvsmodule = "buildbot"
98 svnurl = 'svn://uncensored.citadel.org/'
99 defaultBranch = 'trunk/'
100 baseURL = 'svn://uncensored.citadel.org/'
102 from buildbot.steps import source, shell
103 from buildbot.process import factory
104 #from buildbot.steps import shell
105 from buildbot.steps.source import SVN
106 from buildbot.steps.shell import Compile
107 from buildbot.steps.python_twisted import Trial
108 f1 = factory.BuildFactory()
109 f1.addStep(SVN(defaultBranch=defaultBranch, baseURL=baseURL, mode="update"))
112 # name="LibCitadel: Bootstrap, configure",
113 # command=["bash", "-c", "cd libcitadel; ./bootstrap; ./configure"]))
117 ################################################################################
119 f1.addStep(shell.ShellCommand(
120 command=["./bootstrap"],
121 workdir="build/libcitadel",
122 description=["bootstrapping libcitadel"],
123 descriptionDone=["done"],
124 name="LibCitadel Bootstrap"
127 f1.addStep(shell.ShellCommand(
128 command=["./configure"],
129 workdir="build/libcitadel",
130 description=["Configuring libcitadel"],
131 descriptionDone=["done"],
132 name="LibCitadel Configure"
136 f1.addStep(Compile(command=["make", "all"],
137 workdir="build/libcitadel",
138 description=["Compiling libcitadel"],
139 descriptionDone=["done"],
140 name="LibCitadel Compile"
143 f1.addStep(Compile(command=["make", "all"],
144 workdir="build/libcitadel/tests/",
145 description=["Compiling libcitadel Unit-Tests"],
146 descriptionDone=["done"],
147 name="LibCitadel Configure"
151 ################################################################################
156 f1.addStep(shell.ShellCommand(
157 command=["./bootstrap"],
158 workdir="build/citadel",
159 description=["bootstrapping citadel"],
160 descriptionDone=["done"],
161 name="Citadel Bootstrap"
164 f1.addStep(shell.ShellCommand(
165 command=["./configure"],
166 workdir="build/citadel",
168 'CFLAGS' : "-I $PWD/full/build/libcitadel/lib",
169 'LDFLAGS' : "-L${PWD}/full/build/libcitadel/.libs"
171 description=["Configuring citadel"],
172 descriptionDone=["done"],
173 name="Citadel Configure"
177 f1.addStep(Compile(command=["make", "all"],
178 workdir="build/citadel",
179 description=["Compiling citadel"],
180 descriptionDone=["done"],
181 name="Citadel Compile"
188 ################################################################################
193 f1.addStep(shell.ShellCommand(
194 command=["./bootstrap"],
195 workdir="build/webcit",
196 description=["bootstrapping webcit"],
197 descriptionDone=["done"],
198 name="WebCit Bootstrap"
202 f1.addStep(shell.ShellCommand(
203 command=["./configure"],
204 workdir="build/webcit",
206 'CFLAGS' : "-I ${PWD}/full/build/libcitadel/lib",
207 'LDFLAGS' : "-L${PWD}/full/build/libcitadel/.libs"
209 description=["Configuring webcit"],
210 descriptionDone=["done"],
211 name="WebCit Configure"
215 f1.addStep(Compile(command=["make", "all"],
216 workdir="build/webcit",
217 description=["Compiling webcit"],
218 descriptionDone=["done"],
219 name="WebCit Compile"
222 f1.addStep(Compile(command=["make", "all"],
223 workdir="build/webcit/tests/",
224 description=["Compiling webcit Unit-Tests"],
225 descriptionDone=["done"],
226 name="WebCit Testing"
230 #>f1.addStep(shell.ShellCommand(
231 #> command=["./configure"],
232 #> workdir="build/libcitadel",
233 #> description=["Configuring libcitadel"],
234 #> descriptionDone=["done"]
239 # name="LibCitadel: Bootstrap, configure",
240 # command=["bash", "-c", "cd libcitadel; ./bootstrap; ./configure"]))
242 # name="LibCitadel: Compile",
243 # command=["bash", "-c", "cd libcitadel; make; cd tests; make; make test"]))
245 # name="LibCitadel: Tests",
246 # command=["bash", "-c", "cd libcitadel/tests; make; make test"]))
248 # name="CitServer: Bootstrap, configure",
249 # command=["bash", "-c",
250 # "cd citadel; ./bootstrap; "
253 # 'CFLAGS' : "-I ../libcitadel/lib",
254 # 'LDFLAGS' : "-L../libcitadel/.libs"
260 # name="CitServer: compile",
261 # command=["bash", "-c", "cd citadel; make"]))
263 # name="Webcit: Configure",
264 # command=["bash", "-c",
265 # "cd webcit; ./bootstrap; "
266 # "export CFLAGS='-I ../libcitadel/lib';"
267 # "export LDFLAGS='-L../libcitadel/.libs';"
270 # name="Webcit: Compile",
271 # command=["bash", "-c", "cd webcit; make"]))
274 ##f1.addStep(Compile(command=["bash", "./autocompile", ""]))
275 #f1.addStep(Compile(command=["bash", "./autocompile", ""]))
276 #f1.addStep(Compile(command=["bash", "./autocompile", ""]))
277 #f1.addStep(Compile(command=["bash", "./autocompile", ""]))
278 #f1.addStep(Trial(testpath="."))
280 b1 = {'name': "buildbot-citadel",
281 'slavename': "bithorizon",
288 ####### STATUS TARGETS
290 # 'status' is a list of Status Targets. The results of each build will be
291 # pushed to these targets. buildbot/status/*.py has a variety to choose from,
292 # including web pages, email senders, and IRC bots.
296 from buildbot.status import html
297 c['status'].append(html.WebStatus(http_port=8010, allowForce=True))
299 # from buildbot.status import mail
300 # c['status'].append(mail.MailNotifier(fromaddr="buildbot@localhost",
301 # extraRecipients=["builds@example.com"],
302 # sendToInterestedUsers=False))
304 # from buildbot.status import words
305 # c['status'].append(words.IRC(host="irc.example.com", nick="bb",
306 # channels=["#example"]))
308 # from buildbot.status import client
309 # c['status'].append(client.PBListener(9988))
312 ####### DEBUGGING OPTIONS
314 # if you set 'debugPassword', then you can connect to the buildmaster with
315 # the diagnostic tool in contrib/debugclient.py . From this tool, you can
316 # manually force builds and inject changes, which may be useful for testing
317 # your buildmaster without actually commiting changes to your repository (or
318 # before you have a functioning 'sources' set up). The debug tool uses the
319 # same port number as the slaves do: 'slavePortnum'.
321 c['debugPassword'] = "debugpassword"
323 # if you set 'manhole', you can ssh into the buildmaster and get an
324 # interactive python shell, which may be useful for debugging buildbot
325 # internals. It is probably only useful for buildbot developers. You can also
326 # use an authorized_keys file, or plain telnet.
327 #from buildbot import manhole
328 #c['manhole'] = manhole.PasswordManhole("tcp:9999:interface=127.0.0.1",
329 # "admin", "password")
332 ####### PROJECT IDENTITY
334 # the 'projectName' string will be used to describe the project that this
335 # buildbot is working on. For example, it is used as the title of the
336 # waterfall HTML page. The 'projectURL' string will be used to provide a link
337 # from buildbot HTML pages to your project's home page.
339 c['projectName'] = "Citadel"
340 c['projectURL'] = "http://www.citadel.org/"
342 # the 'buildbotURL' string should point to the location where the buildbot's
343 # internal web server (usually the html.Waterfall page) is visible. This
344 # typically uses the port number set in the Waterfall 'status' entry, but
345 # with an externally-visible host name which the buildbot cannot figure out
348 c['buildbotURL'] = "http://dothebart.dyndns.org/buildbot/"
351 from buildbot.status import words
354 host="irc.freenode.net",
356 channels=["#citadel"],
357 password="mysecretpassword",
360 'successToFailure': 1,
361 'failureToSuccess': 1