1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
\r
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
\r
5 <link rel="icon" type="image/png" href="/favicon.png">
\r
6 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
\r
7 <meta name="generator" content="AsciiDoc 8.6.7" />
\r
8 <title>i3: The i3 buildbot setup</title>
\r
9 <link rel="stylesheet" href="/css/style.css" type="text/css" />
\r
10 <link rel="stylesheet" href="/css/xhtml11.css" type="text/css" />
\r
11 <script type="text/javascript">
\r
13 window.onload = function(){asciidoc.footnotes(); asciidoc.toc(2);}
\r
16 <script type="text/javascript" src="/js/asciidoc-xhtml11.js"></script>
\r
18 <body class="article">
\r
21 <a href="/"><h1 id="title">i3 - improved tiling WM</h1></a>
\r
23 <li><a style="border-bottom: 2px solid #fff" href="/docs">Docs</a></li>
\r
24 <li><a href="/screenshots">Screens</a></li>
\r
25 <li><a href="/contact">Contact</a></li>
\r
26 <li><a href="http://bugs.i3wm.org/">Bugs</a></li>
\r
28 <br style="clear: both">
\r
31 <h1>The i3 buildbot setup</h1>
\r
32 <span id="author">Michael Stapelberg</span><br />
\r
33 <span id="email"><tt><<a href="mailto:michael@i3wm.org">michael@i3wm.org</a>></tt></span><br />
\r
34 <span id="revdate">August 2012</span>
\r
36 <div id="toctitle">Table of Contents</div>
37 <noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
41 <div class="sectionbody">
\r
42 <div class="paragraph"><p>This document explains the <a href="http://www.buildbot.net/">buildbot</a> setup we use to
\r
43 provide up-to-date documentation and debian packages at <a href="http://build.i3wm.org/">http://build.i3wm.org/</a>.
\r
44 We publish these information so that our setup is well-documented (thus
\r
45 decreasing future maintenance effort) and because it might be interesting for
\r
46 other projects.</p></div>
\r
50 <h2 id="_introduction">1. Introduction</h2>
\r
51 <div class="sectionbody">
\r
52 <div class="paragraph"><p>What we are doing in i3 is called Continuous Integration (see
\r
53 <a href="http://en.wikipedia.org/wiki/Continuous_integration">http://en.wikipedia.org/wiki/Continuous_integration</a>): we publish the changes we
\r
54 make on our local machines as often as possible. In order to maintain a
\r
55 continuously high quality, each time any developer pushes changes to the
\r
56 official git repository, a number of quality assurance tools start running
\r
57 automatically:</p></div>
\r
58 <div class="olist arabic"><ol class="arabic">
\r
61 Latest documentation is generated and provided at
\r
62 <a href="http://build.i3wm.org/docs/">http://build.i3wm.org/docs/</a>. This makes it easy to link to documentation for
\r
63 features which are only in the current git version, not in the released
\r
69 The source code is compiled and it is automatically posted to the IRC
\r
70 channel whether there were any compiler warnings. While developers should
\r
71 notice compiler warnings, this mechanism creates a bit of public pressure
\r
72 ("Oh, Michael introduced warnings with this commit!"). More importantly,
\r
73 since this mechanism builds a dist tarball and then compiles that tarball,
\r
74 any changes to the source which would result in an uncompilable dist tarball
\r
75 are immediately obvious. Therefore, we could cut a release from the current
\r
76 git version at any point in time.
\r
81 The clang static analyzer runs and the resulting report is provided at
\r
82 <a href="http://build.i3wm.org/clang-analyze/">http://build.i3wm.org/clang-analyze/</a>. While every developer needs to compile
\r
83 his code before committing, he doesn’t necessarily use clang (so we catch
\r
84 build failures when using clang) and he also probably doesn’t run a static
\r
85 analyzer as part of his normal workflow. By just being available without any
\r
86 friction, this mechanism encourages developers to look at the report and fix
\r
92 Debian (and Ubuntu) packages are built. This not only ensures that we don’t
\r
93 change anything in the source code which would lead to an FTBFS (Fails To
\r
94 Build From Source) when building a Debian package, it also goes a long way
\r
95 to encourage end users to test i3. To remove the need and resource
\r
96 requirements for them to compile their own version of i3 regularly, we
\r
97 provide packages that integrate conveniently with a normal Debian system
\r
98 (e.g. that are automatically upgraded).
\r
104 <div class="sect1">
\r
105 <h2 id="_why_buildbot">2. Why buildbot?</h2>
\r
106 <div class="sectionbody">
\r
107 <div class="paragraph"><p>Previously, I was unsatisfied with the current state of FOSS CI tools like
\r
108 Jenkins, Tinderbox and others. They either seemed bloated, hard to use,
\r
109 outdated or unappealing for some other reason.</p></div>
\r
110 <div class="paragraph"><p>Then I discovered buildbot and was impressed by its flexibility. It let me
\r
111 implement everything I wanted from a CI tool and (in my opinion) it is
\r
112 light-weight, easy to deploy and well maintained.</p></div>
\r
113 <div class="paragraph"><p>The only downside of buildbot is its configuration and documentation: You need
\r
114 to spend quite a bit of time (I needed multiple days) until it works the way
\r
115 you want it to and oftentimes, the documentation is far too sparse. This is one
\r
116 of the reasons why I’m publishing the i3 setup.</p></div>
\r
119 <div class="sect1">
\r
120 <h2 id="_configuration">3. Configuration</h2>
\r
121 <div class="sectionbody">
\r
122 <div class="paragraph"><p>See the next section for a complete, copy & pasteable configuration file. This
\r
123 section covers the most important aspects without covering every line.</p></div>
\r
124 <div class="paragraph"><p>This document assumes you are running buildbot 0.8.6p1.</p></div>
\r
125 <div class="sect2">
\r
126 <h3 id="_change_sources">3.1. Change sources</h3>
\r
127 <div class="paragraph"><p>Since i3 uses a central git repository, we use the official buildbot
\r
128 <a href="https://github.com/buildbot/buildbot/blob/master/master/contrib/git_buildbot.py">git
\r
129 post-receive hook</a> that sends the change information to the buildbot master.</p></div>
\r
131 <div class="sect2">
\r
132 <h3 id="_schedulers">3.2. Schedulers</h3>
\r
133 <div class="paragraph"><p>There are two things (called "builders" in buildbot-language) which happen
\r
134 whenever a new change in the <tt>next</tt> branch of i3 occurs:</p></div>
\r
135 <div class="olist arabic"><ol class="arabic">
\r
138 The "docs" builder builds and uploads the latest documentation. This happens
\r
139 directly from the git repository with a custom asciidoc configuration which
\r
140 indicates that these docs refer to the git version. Therefore, this builder
\r
141 does not benefit from having a dist tarball available (contrary to the other
\r
147 The "dist" builder prepares a dist tarball and then triggers the remaining
\r
148 builders. This ensures that building the dist tarball (an operation which
\r
149 takes about one minute due to documentation generation) only happens once.
\r
153 <div class="paragraph"><p>Here is the relevant configuration part:</p></div>
\r
154 <div class="paragraph"><p><strong>Schedulers</strong>:</p></div>
\r
155 <div class="listingblock">
\r
156 <div class="content">
\r
157 <pre><tt>c['schedulers'] = []
\r
159 c['schedulers'].append(SingleBranchScheduler(
\r
162 treeStableTimer = 10,
\r
163 builderNames = [ 'dist', 'docs' ],
\r
166 c['schedulers'].append(Triggerable(
\r
167 name = 'dist-tarball-done',
\r
168 builderNames = [ 'compile', 'clang-analyze', 'debian-packages', 'ubuntu-packages' ],
\r
172 <div class="sect2">
\r
173 <h3 id="_building_the_dist_tarball">3.3. Building the dist tarball</h3>
\r
174 <div class="paragraph"><p>This builder clones the i3 git repository and runs "make dist", which creates a
\r
175 tarball that could be named "i3-4.2.tar.bz2" for example. This tarball is then
\r
176 renamed to dist-%(gitversion).tar.bz2 (so that we can work with a predictable
\r
177 name in the next steps) and uploaded to the buildbot master (since we can have
\r
178 multiple buildslaves, we cannot just let it rest on the buildslave that built
\r
179 it). Afterwards, old dist tarballs are cleaned up and the remaining builders
\r
180 are triggered:</p></div>
\r
181 <div class="paragraph"><p><strong>Building a dist tarball</strong>:</p></div>
\r
182 <div class="listingblock">
\r
183 <div class="content">
\r
184 <pre><tt>factories = {}
\r
186 f = factories['dist'] = BuildFactory()
\r
188 # Check out the git repository.
\r
191 # Fill the 'gitversion' property with the output of git describe --tags.
\r
192 f.addStep(shell.SetProperty(command = 'git describe --tags', property = 'gitversion'))
\r
194 # Build the dist tarball.
\r
195 cmd(f, name = 'make dist', command = [ 'make', 'dist' ])
\r
197 # Rename the created tarball to a well-known name.
\r
199 name = 'rename tarball',
\r
200 command = WithProperties('mv *.tar.bz2 dist-%(gitversion)s.tar.bz2'),
\r
203 # Upload the dist tarball to the master (other factories download it later).
\r
204 f.addStep(transfer.FileUpload(
\r
205 slavesrc = WithProperties('dist-%(gitversion)s.tar.bz2'),
\r
206 masterdest = WithProperties('distballs/dist-%(gitversion)s.tar.bz2'),
\r
209 # Cleanup old dist tarballs (everything older than tree days).
\r
210 f.addStep(master.MasterShellCommand(
\r
211 command = "find distballs -mtime +3 -exec rm '{}' \;",
\r
212 name = 'cleanup old dist tarballs',
\r
215 # Everything worked fine, now trigger compilation.
\r
217 schedulerNames = [ 'dist-tarball-done' ],
\r
218 copy_properties = [ 'gitversion' ],
\r
221 <div class="paragraph"><p>Three things are noteworthy about this part of the configuration:</p></div>
\r
222 <div class="olist arabic"><ol class="arabic">
\r
225 For convenience, we call each factory <tt>f</tt> (just like the global buildbot
\r
226 config uses <tt>c</tt> for the top-level configuration) and add it to a dictionary.
\r
227 Factories in that dictionary are later automatically configured for each
\r
233 We have a shared step called <tt>s_git</tt> so that we only have one location in
\r
234 the configuration file where we specify the git repository URL and branch.
\r
239 We have a custom function called <tt>cmd</tt> which is a shortcut for defining a
\r
240 <tt>ShellCommand</tt> with <tt>haltOnFailure=True</tt> (since each step is critical) and
\r
241 <tt>logEnviron=False</tt> (for brevity).
\r
245 <div class="paragraph"><p>Here are their definitions:</p></div>
\r
246 <div class="paragraph"><p><strong>cmd</strong>:</p></div>
\r
247 <div class="listingblock">
\r
248 <div class="content">
\r
249 <pre><tt>def cmd(factory, **kwargs):
\r
250 factory.addStep(ShellCommand(
\r
251 haltOnFailure = True,
\r
252 logEnviron = False,
\r
256 <div class="paragraph"><p><strong>s_git</strong>:</p></div>
\r
257 <div class="listingblock">
\r
258 <div class="content">
\r
259 <pre><tt>s_git = Git(
\r
260 repourl = 'git://code.i3wm.org/i3',
\r
263 # Check out the latest revision, not the one which caused this build.
\r
264 alwaysUseLatest = True,
\r
266 # We cannot use shallow because it breaks git describe --tags.
\r
269 # Delete remnants of previous builds.
\r
272 # Store checkouts in source/ and copy them over to build/ to save
\r
278 <div class="sect2">
\r
279 <h3 id="_compiling_the_dist_tarball">3.4. Compiling the dist tarball</h3>
\r
280 <div class="paragraph"><p>For this builder to work, you obviously need to install all the
\r
281 build-dependencies for your software on each buildslave. In the case of i3,
\r
282 this can be done with <tt>apt-get build-dep i3-wm</tt>.</p></div>
\r
283 <div class="paragraph"><p>The compilation is pretty straight-forward since it uses the builtin <tt>Compile</tt>
\r
284 step. We call <tt>make</tt> with <tt>-j4</tt> (we don’t have enough buildslaves to make
\r
285 figuring out the amount of cores at build-time worthwhile) and <tt>DEBUG=0</tt> to
\r
286 simulate release build conditions. Also, we pass the preprocessor flag
\r
287 <tt>-D_FORTIFY_SOURCE=2</tt> and the compiler flags <tt>-Wformat</tt> and <tt>-Wformat-security</tt>
\r
288 to enable additional warnings.</p></div>
\r
289 <div class="paragraph"><p><strong>Compiling the dist tarball</strong>:</p></div>
\r
290 <div class="listingblock">
\r
291 <div class="content">
\r
292 <pre><tt>f = factories['compile'] = BuildFactory()
\r
293 unpack_dist_tarball(f)
\r
295 command = [ 'make', 'DEBUG=0', '-j4' ],
\r
296 warningPattern = '.*warning: ',
\r
297 warnOnWarnings = True,
\r
298 workdir = 'build/DIST',
\r
300 'CPPFLAGS': '-D_FORTIFY_SOURCE=2',
\r
301 'CFLAGS': '-Wformat -Wformat-security'
\r
305 f.addStep(WarningsToIRC())</tt></pre>
\r
307 <div class="paragraph"><p>Again, we use custom functions (and a custom buildstep) to make our lives
\r
308 easier. Here is the definition of unpack_dist_tarball which adds three steps to
\r
309 the factory that download and unpack the dist tarball to the <tt>DIST/</tt> directory:</p></div>
\r
310 <div class="paragraph"><p><strong>unpack_dist_tarball</strong>:</p></div>
\r
311 <div class="listingblock">
\r
312 <div class="content">
\r
313 <pre><tt>def unpack_dist_tarball(factory):
\r
314 factory.addStep(transfer.FileDownload(
\r
315 mastersrc = WithProperties('distballs/dist-%(gitversion)s.tar.bz2'),
\r
316 slavedest = 'dist.tar.bz2',
\r
319 factory.addStep(slave.MakeDirectory(dir = 'build/DIST'))
\r
322 name = 'unpack dist tarball',
\r
323 command = [ 'tar', 'xf', 'dist.tar.bz2', '-C', 'DIST', '--strip-components=1' ],
\r
326 <div class="paragraph"><p>The <tt>WarningsToIRC</tt> build step is a custom build step which sets a property
\r
327 called "ircsuffix" that is used by our custom IRC bot. This is covered later in
\r
328 more detail. This property gets set to a green or red message, depending on
\r
329 whether there were any warnings:</p></div>
\r
330 <div class="paragraph"><p><strong>WarningsToIRC</strong>:</p></div>
\r
331 <div class="listingblock">
\r
332 <div class="content">
\r
333 <pre><tt>class WarningsToIRC(buildstep.BuildStep):
\r
335 warnings = self.getProperty("warnings-count")
\r
336 if warnings is not None and int(warnings) > 0:
\r
337 warnings = int(warnings) # just to be sure
\r
338 self.setProperty("ircsuffix", ("\0037 with %d warning%s!" %
\r
339 (warnings, "s" if warnings != 1 else "")))
\r
341 self.setProperty("ircsuffix", "\0033 without warnings")
\r
342 self.finished(SUCCESS)</tt></pre>
\r
345 <div class="sect2">
\r
346 <h3 id="_static_code_analysis">3.5. Static code analysis</h3>
\r
347 <div class="paragraph"><p>For this builder to work, you additionally need the <tt>clang</tt> compiler on each
\r
348 buildslave: <tt>apt-get install clang</tt>.</p></div>
\r
349 <div class="paragraph"><p>This builder uses only custom functions which you already know by now. It runs
\r
350 scan-build, then moves scan-build’s output from a date-based directory directly
\r
351 into the <tt>CLANG/</tt> directory and uploads that to the buildmaster.</p></div>
\r
352 <div class="paragraph"><p>On the buildmaster, a webserver is configured which has a symlink to
\r
353 <tt>/home/build/i3-master/htdocs/clang-analyze</tt> in its document root.</p></div>
\r
354 <div class="paragraph"><p><strong>static code analysis</strong>:</p></div>
\r
355 <div class="listingblock">
\r
356 <div class="content">
\r
357 <pre><tt>f = factories['clang-analyze'] = BuildFactory()
\r
358 unpack_dist_tarball(f)
\r
364 '--html-title', WithProperties('Analysis of i3 v%(gitversion)s'),
\r
367 workdir = 'build/DIST',
\r
370 # remove the subdirectory -- we always want to overwrite
\r
371 cmd(f, command = 'mv CLANG/*/* CLANG/')
\r
373 f.addStep(transfer.DirectoryUpload(
\r
374 slavesrc = 'CLANG',
\r
375 masterdest = 'htdocs/clang-analyze',
\r
377 name = 'upload output',
\r
380 f.addStep(ClangToIRC())</tt></pre>
\r
382 <div class="paragraph"><p>The <tt>ClangToIRC</tt> custom step is even simpler than <tt>WarningsToIRC</tt>. It simply
\r
383 sets the ircsuffix property to a static message:</p></div>
\r
384 <div class="paragraph"><p><strong>ClangToIRC</strong>:</p></div>
\r
385 <div class="listingblock">
\r
386 <div class="content">
\r
387 <pre><tt>class ClangToIRC(buildstep.BuildStep):
\r
389 self.setProperty("ircsuffix", ", see http://build.i3wm.org/clang-analyze/")
\r
390 self.finished(SUCCESS)</tt></pre>
\r
393 <div class="sect2">
\r
394 <h3 id="_generating_documentation">3.6. Generating documentation</h3>
\r
395 <div class="paragraph"><p>This builder is the one which is the least clean of all. It uses the Debian
\r
396 packaging information to decide which docs to publish and which manpages to
\r
397 generate. Additionally, it uses a for loop instead of calling a script. I
\r
398 recommend including a script to do this in your repository instead.</p></div>
\r
399 <div class="paragraph"><p>Apart from these concerns, the builder is straight-forward: It clones the git
\r
400 repository, generates the documentation and then uploads the documentation to
\r
401 the buildmaster:</p></div>
\r
402 <div class="paragraph"><p><strong>Generating documentation</strong>:</p></div>
\r
403 <div class="listingblock">
\r
404 <div class="content">
\r
405 <pre><tt>f = factories['docs'] = BuildFactory()
\r
407 # Fill the 'gitversion' property with the output of git describe --tags.
\r
408 f.addStep(shell.SetProperty(command = 'git describe --tags', property = 'gitversion'))
\r
409 cmd(f, name = 'build docs', command = [ 'make', '-C', 'docs', "ASCIIDOC=asciidoc -a linkcss -a stylesdir=http://i3wm.org/css -a scriptsdir=http://i3wm.org/js --backend=xhtml11 -f docs/asciidoc-git.conf" ])
\r
410 cmd(f, name = 'build manpages', command = "for file in $(sed 's/\.1$/.man/g' debian/i3-wm.manpages); do asciidoc -a linkcss -a stylesdir=http://i3wm.org/css -a scriptsdir=http://i3wm.org/js --backend=xhtml11 -f docs/asciidoc-git.conf \"$file\"; done")
\r
411 f.addStep(slave.MakeDirectory(dir='build/COPY-DOCS'))
\r
412 cmd(f, name = 'copy docs', command = "cp $(tr '\\n' ' ' < debian/i3-wm.docs) COPY-DOCS")
\r
413 cmd(f, name = 'copy manpages', command = "cp $(sed 's/\.1$/.html/g' debian/i3-wm.manpages | tr '\\n' ' ') COPY-DOCS")
\r
415 f.addStep(transfer.DirectoryUpload(
\r
416 slavesrc = 'COPY-DOCS',
\r
417 masterdest = 'htdocs/docs-git',
\r
419 name = 'upload docs'))
\r
421 f.addStep(DocsToIRC())</tt></pre>
\r
423 <div class="paragraph"><p>Just as <tt>ClangToIRC</tt>, <tt>DocsToIRC</tt> appends a static message:</p></div>
\r
424 <div class="paragraph"><p><strong>DocsToIRC</strong>:</p></div>
\r
425 <div class="listingblock">
\r
426 <div class="content">
\r
427 <pre><tt>class DocsToIRC(buildstep.BuildStep):
\r
429 self.setProperty("ircsuffix", ", see http://build.i3wm.org/docs/")
\r
430 self.finished(SUCCESS)</tt></pre>
\r
433 <div class="sect2">
\r
434 <h3 id="_building_debian_ubuntu_packages">3.7. Building Debian/Ubuntu packages</h3>
\r
435 <div class="paragraph"><p>This is the most complex builder of all. It uses <tt>pbuilder-dist</tt>, <tt>debchange</tt>,
\r
436 <tt>dpkg-buildpackage</tt> and <tt>reprepro</tt> to generate a Debian repository with a
\r
437 cleanly compiled package for amd64 and i386. In order for it to work, you need
\r
438 to install the following packages: <tt>apt-get install devscripts dpkg-dev
\r
439 reprepro ubuntu-dev-tools</tt>. Afterwards, you need to allow the user as which the
\r
440 buildslave runs to execute pbuilder via sudo without needing a password, so run
\r
441 <tt>visudo</tt> and add a line like this one:</p></div>
\r
442 <div class="paragraph"><p><strong>sudoers line</strong>:</p></div>
\r
443 <div class="listingblock">
\r
444 <div class="content">
\r
445 <pre><tt>build ALL= NOPASSWD: SETENV: /usr/sbin/pbuilder</tt></pre>
\r
447 <div class="paragraph"><p>Then, as the user as which your buildslave runs, setup the pbuilder
\r
448 environments (you only need to do this once):</p></div>
\r
449 <div class="paragraph"><p><strong>pbuilder preparation</strong>:</p></div>
\r
450 <div class="listingblock">
\r
451 <div class="content">
\r
452 <pre><tt>sudo ln -s pbuilder-dist /usr/bin/pbuilder-sid-amd64
\r
453 sudo ln -s pbuilder-dist /usr/bin/pbuilder-sid-i386
\r
454 pbuilder-sid-amd64 create
\r
455 pbuilder-sid-i386 create</tt></pre>
\r
457 <div class="paragraph"><p>Also, you will need a GPG key to sign these packages.</p></div>
\r
458 <div class="paragraph"><p>The debian builder starts by unpacking the dist tarball, copying the Debian
\r
459 packaging from git, creating an empty Debian repository with the
\r
460 <tt>i3-autobuild-keyring</tt> contents in it. It then adds a new changelog entry to
\r
461 reflect the git version and the fact that this package was built automatically,
\r
462 builds a source package with <tt>dpkg-buildpackage</tt> and adds it to the repository.
\r
463 Afterwards, it updates each pbuilder and builds binary packages for each
\r
464 architecture (amd64 and i386). After adding the resulting packages to the
\r
465 repository, it uploads the repository to the buildmaster:</p></div>
\r
466 <div class="paragraph"><p><strong>Debian builder</strong>:</p></div>
\r
467 <div class="listingblock">
\r
468 <div class="content">
\r
469 <pre><tt>distributions = [ 'sid-amd64', 'sid-i386' ]
\r
470 gpg_key = 'BE1DB1F1'
\r
472 f = factories['debian-packages'] = BuildFactory()
\r
473 # We need the git repository for the Debian packaging.
\r
475 unpack_dist_tarball(f)
\r
476 cmd(f, name = 'copy packaging', command = "cp -r debian DIST/")
\r
478 # Add a new changelog entry to have the git version in the package version.
\r
480 name = 'update changelog',
\r
481 workdir = 'build/DIST',
\r
482 command = [ 'debchange', '-m', '-l', WithProperties('+g%(gitversion)s'), 'Automatically built' ],
\r
486 name = 'source pkg',
\r
487 command = [ 'dpkg-buildpackage', '-S', '-us', '-uc' ],
\r
488 workdir = 'build/DIST',
\r
491 for dist in distributions:
\r
492 f.addStep(slave.MakeDirectory(dir = 'build/RESULT-' + dist))
\r
494 # Create debian sid repository
\r
495 f.addStep(slave.MakeDirectory(dir = 'build/REPO-sid/conf'))
\r
496 f.addStep(transfer.StringDownload(
\r
499 Architectures: i386 amd64 source
\r
501 DebIndices: Packages Release . .gz .bz2
\r
502 DscIndices: Sources Release . .gz .bz2
\r
503 SignWith: %(gpg_key)s
\r
504 """ % { "gpg_key": gpg_key },
\r
505 slavedest = 'REPO-sid/conf/distributions',
\r
508 # add source package to repository
\r
509 reprepro_include(f, 'i3-wm*_source.changes', 'dsc')
\r
511 # Add keyring to the repository. We need to run git clone on our own because
\r
512 # the Git() step assumes there’s precisely one repository we want to deal with.
\r
513 # No big deal since the i3-autobuild-keyring repository is not big.
\r
515 name = 'clone keyring repo',
\r
516 command = 'git clone git://code.i3wm.org/i3-autobuild-keyring',
\r
518 reprepro_include(f, 'i3-autobuild-keyring/prebuilt/*.changes')
\r
520 for dist in distributions:
\r
521 # update the pbuilder
\r
522 cmd(f, name = 'update builder', command = 'pbuilder-' + dist + ' update')
\r
524 # build the package for each dist
\r
525 f.addStep(ShellCommand(
\r
526 logEnviron = False,
\r
527 name = 'pkg ' + dist,
\r
528 command = 'pbuilder-' + dist + ' build --binary-arch \
\r
529 --buildresult RESULT-' + dist + ' --debbuildopts -j8 i3-wm*dsc',
\r
530 warnOnFailure = True
\r
533 reprepro_include(f, 'RESULT-' + dist + '/*.changes')
\r
535 # upload the sid repo
\r
536 # Since the next step is cleaning up old files, we set haltOnFailure=True -- we
\r
537 # prefer providing old packages over providing no packages at all :).
\r
538 for directory in [ 'pool', 'dists' ]:
\r
539 f.addStep(transfer.DirectoryUpload(
\r
540 slavesrc = 'REPO-sid/' + directory,
\r
541 masterdest = 'htdocs/debian/sid/' + directory,
\r
543 name = 'upload sid ' + directory,
\r
544 haltOnFailure = True,
\r
547 f.addStep(master.MasterShellCommand(
\r
548 command = "find htdocs/debian/sid/pool -mtime +3 -exec rm '{}' \;",
\r
549 name = 'cleanup old packages',
\r
552 # We ensure there is an empty i18n/Index to speed up apt (so that it does not
\r
553 # try to download Translation-*)
\r
554 f.addStep(master.MasterShellCommand(
\r
555 command = [ 'mkdir', '-p', 'htdocs/debian/sid/dists/sid/main/i18n' ],
\r
556 name = 'create i18n folder',
\r
558 f.addStep(master.MasterShellCommand(
\r
559 command = [ 'touch', 'htdocs/debian/sid/dists/sid/main/i18n/Index' ],
\r
560 name = 'touch i18n/Index',
\r
563 <div class="paragraph"><p>The <tt>reprepro_include</tt> command is defined as follows:</p></div>
\r
564 <div class="paragraph"><p><strong>reprepro_include</strong>:</p></div>
\r
565 <div class="listingblock">
\r
566 <div class="content">
\r
567 <pre><tt>def reprepro_include(factory, path, debtype='deb', **kwargs):
\r
569 name = 'reprepro include',
\r
570 command = 'reprepro --ignore=wrongdistribution -T ' + debtype + ' -b REPO-sid include sid ' + path,
\r
574 <div class="paragraph"><p>Running such a builder for Ubuntu works exactly the same way, but you need to
\r
575 replace "sid" with "precise" in all places (see the full configuration file for
\r
576 an example).</p></div>
\r
578 <div class="sect2">
\r
579 <h3 id="_status_targets">3.8. Status targets</h3>
\r
580 <div class="paragraph"><p>We don’t advertise the HTTP status target. Instead, status is posted to IRC via
\r
581 a custom bot. This bot provides an HTTP end point and buildbot is configured to
\r
582 push status changes to that endpoint:</p></div>
\r
583 <div class="paragraph"><p><strong>http status target</strong>:</p></div>
\r
584 <div class="listingblock">
\r
585 <div class="content">
\r
586 <pre><tt>c['status'].append(buildbot.status.status_push.HttpStatusPush(
\r
587 serverUrl = 'http://localhost:8080/push_buildbot',
\r
590 <div class="paragraph"><p>You can find the source code of that bot at
\r
591 <a href="http://code.stapelberg.de/git/go-buildbot-announce/">http://code.stapelberg.de/git/go-buildbot-announce/</a>. As the name suggests, it
\r
592 is written in Go. Also, it is quite specific to i3, so you might be better off
\r
593 implementing such a bot (or plugin) on your own. It might make for a nice
\r
594 example, though, especially back when its only feature was announcing the build
\r
596 <div class="paragraph"><p><a href="http://code.stapelberg.de/git/go-buildbot-announce/tree/src/i3build.go?id=eeebf1a546454c8a0d82ca623886bb835cd32ba0">http://code.stapelberg.de/git/go-buildbot-announce/tree/src/i3build.go?id=eeebf1a546454c8a0d82ca623886bb835cd32ba0</a></p></div>
\r
600 <div class="sect1">
\r
601 <h2 id="_full_configuration_file">4. Full configuration file</h2>
\r
602 <div class="sectionbody">
\r
603 <div class="paragraph"><p>This is the full configuration file, as tested and currently in use (except for
\r
604 the passwords, though):</p></div>
\r
605 <div class="paragraph"><p><strong>master.cfg</strong>:</p></div>
\r
606 <div class="listingblock">
\r
607 <div class="content">
\r
608 <pre><tt># -*- python -*-
\r
609 # -*- coding: utf-8
\r
610 # vim:ts=4:sw=4:expandtab:syntax=python
\r
612 # i3 buildbot configuration
\r
613 # © 2012 Michael Stapelberg, Public Domain
\r
614 # see http://i3wm.org/docs/buildbot.html for more information.
\r
616 from buildbot.buildslave import BuildSlave
\r
617 from buildbot.changes import pb
\r
618 from buildbot.schedulers.basic import SingleBranchScheduler
\r
619 from buildbot.schedulers.triggerable import Triggerable
\r
620 from buildbot.process.properties import WithProperties
\r
621 from buildbot.process.factory import BuildFactory
\r
622 from buildbot.steps.source.git import Git
\r
623 from buildbot.steps.shell import ShellCommand
\r
624 from buildbot.steps.shell import Compile
\r
625 from buildbot.steps.trigger import Trigger
\r
626 from buildbot.steps import shell, transfer, master, slave
\r
627 from buildbot.config import BuilderConfig
\r
628 from buildbot.process import buildstep
\r
629 from buildbot.status import html
\r
630 from buildbot.status import words
\r
631 import buildbot.status.status_push
\r
632 from buildbot.status.web import auth, authz
\r
633 from buildbot.status.builder import SUCCESS, FAILURE
\r
635 c = BuildmasterConfig = {}
\r
637 c['slaves'] = [BuildSlave('docsteel-vm', 'secret')]
\r
638 c['slavePortnum'] = 9989
\r
639 # Changes are pushed to buildbot using a git hook.
\r
640 c['change_source'] = [pb.PBChangeSource(
\r
641 user = 'i3-source',
\r
645 ################################################################################
\r
647 ################################################################################
\r
649 c['schedulers'] = []
\r
651 # The first scheduler kicks off multiple builders:
\r
652 # • 'dist' builds a dist tarball and starts the triggerable schedulers
\r
654 # • 'docs' builds the documentation with a special asciidoc configuration
\r
655 # (therefore, it does not profit from a dist tarball and can be run in
\r
657 c['schedulers'].append(SingleBranchScheduler(
\r
660 treeStableTimer = 10,
\r
661 builderNames = [ 'dist', 'docs' ],
\r
664 c['schedulers'].append(Triggerable(
\r
665 name = 'dist-tarball-done',
\r
666 builderNames = [ 'compile', 'clang-analyze', 'debian-packages', 'ubuntu-packages' ],
\r
669 ################################################################################
\r
670 # Shortcuts for builders
\r
671 ################################################################################
\r
673 # shortcut for a ShellCommand with haltOnFailure=True, logEnviron=False
\r
674 def cmd(factory, **kwargs):
\r
675 factory.addStep(ShellCommand(
\r
676 haltOnFailure=True,
\r
681 # Shortcut to add steps necessary to download and unpack the dist tarball.
\r
682 def unpack_dist_tarball(factory):
\r
683 factory.addStep(transfer.FileDownload(
\r
684 mastersrc=WithProperties('distballs/dist-%(gitversion)s.tar.bz2'),
\r
685 slavedest='dist.tar.bz2',
\r
687 factory.addStep(slave.MakeDirectory(dir='build/DIST'))
\r
689 name = 'unpack dist tarball',
\r
690 command = [ 'tar', 'xf', 'dist.tar.bz2', '-C', 'DIST', '--strip-components=1' ],
\r
693 # Includes the given path in REPO-sid using reprepro.
\r
694 def reprepro_include(factory, path, debtype='deb', **kwargs):
\r
696 name = 'reprepro include',
\r
697 command = 'reprepro --ignore=wrongdistribution -T ' + debtype + ' -b REPO-sid include sid ' + path,
\r
701 def reprepro_include_ubuntu(factory, path, debtype='deb', **kwargs):
\r
703 name = 'reprepro include',
\r
704 command = 'reprepro --ignore=wrongdistribution -T ' + debtype + ' -b REPO-sid include precise ' + path,
\r
708 ################################################################################
\r
710 ################################################################################
\r
712 # Adds the ircsuffix property to reflect whether there were warnings.
\r
713 class WarningsToIRC(buildstep.BuildStep):
\r
715 warnings = self.getProperty("warnings-count")
\r
716 if warnings is not None and int(warnings) > 0:
\r
717 warnings = int(warnings) # just to be sure
\r
718 self.setProperty("ircsuffix", "\0037 with %d warning%s!" % (warnings, "s" if warnings != 1 else ""))
\r
720 self.setProperty("ircsuffix", "\0033 without warnings")
\r
721 self.finished(SUCCESS)
\r
723 # Adds a link to the automatically generated documentation.
\r
724 class DocsToIRC(buildstep.BuildStep):
\r
726 self.setProperty("ircsuffix", ", see http://build.i3wm.org/docs/")
\r
727 self.finished(SUCCESS)
\r
729 # Adds a link to the clang report.
\r
730 class ClangToIRC(buildstep.BuildStep):
\r
732 self.setProperty("ircsuffix", ", see http://build.i3wm.org/clang-analyze/")
\r
733 self.finished(SUCCESS)
\r
735 ################################################################################
\r
736 # Shared steps, used in different factories.
\r
737 ################################################################################
\r
740 repourl='git://code.i3wm.org/i3',
\r
743 # Check out the latest revision, not the one which caused this build.
\r
744 alwaysUseLatest=True,
\r
746 # We cannot use shallow because it breaks git describe --tags.
\r
749 # Delete remnants of previous builds.
\r
752 # Store checkouts in source/ and copy them over to build/ to save
\r
756 # XXX: In newer versions of buildbot (> 0.8.6), we want to use
\r
757 # getDescription={ 'tags': True } here and get rid of the extra git
\r
758 # describe --tags step.
\r
761 ################################################################################
\r
762 # factory: "dist" — builds the dist tarball once (used by all other factories)
\r
763 ################################################################################
\r
767 f = factories['dist'] = BuildFactory()
\r
768 # Check out the git repository.
\r
770 # Fill the 'gitversion' property with the output of git describe --tags.
\r
771 f.addStep(shell.SetProperty(command = 'git describe --tags', property = 'gitversion'))
\r
772 # Build the dist tarball.
\r
773 cmd(f, name = 'make dist', command = [ 'make', 'dist' ])
\r
774 # Rename the created tarball to a well-known name.
\r
775 cmd(f, name = 'rename tarball', command = WithProperties('mv *.tar.bz2 dist-%(gitversion)s.tar.bz2'))
\r
776 # Upload the dist tarball to the master (other factories download it later).
\r
777 f.addStep(transfer.FileUpload(
\r
778 slavesrc = WithProperties('dist-%(gitversion)s.tar.bz2'),
\r
779 masterdest = WithProperties('distballs/dist-%(gitversion)s.tar.bz2'),
\r
781 # Cleanup old dist tarballs (everything older than tree days).
\r
782 f.addStep(master.MasterShellCommand(
\r
783 command = "find distballs -mtime +3 -exec rm '{}' \;",
\r
784 name = 'cleanup old dist tarballs',
\r
786 # Everything worked fine, now trigger compilation.
\r
788 schedulerNames = [ 'dist-tarball-done' ],
\r
789 copy_properties = [ 'gitversion' ],
\r
792 ################################################################################
\r
793 # factory: "compile" — compiles the dist tarball and reports warnings
\r
794 ################################################################################
\r
796 f = factories['compile'] = BuildFactory()
\r
797 unpack_dist_tarball(f)
\r
799 command = [ 'make', 'DEBUG=0', '-j4' ],
\r
800 warningPattern = '.*warning: ',
\r
801 warnOnWarnings = True,
\r
802 workdir = 'build/DIST',
\r
804 'CPPFLAGS': '-D_FORTIFY_SOURCE=2',
\r
805 'CFLAGS': '-Wformat -Wformat-security'
\r
809 f.addStep(WarningsToIRC())
\r
811 ################################################################################
\r
812 # factory: "clang-analyze" — runs a static code analysis
\r
813 ################################################################################
\r
814 # $ sudo apt-get install clang
\r
816 f = factories['clang-analyze'] = BuildFactory()
\r
817 unpack_dist_tarball(f)
\r
823 '--html-title', WithProperties('Analysis of i3 v%(gitversion)s'),
\r
826 workdir = 'build/DIST',
\r
829 # remove the subdirectory -- we always want to overwrite
\r
830 cmd(f, command = 'mv CLANG/*/* CLANG/')
\r
832 f.addStep(transfer.DirectoryUpload(
\r
833 slavesrc = 'CLANG',
\r
834 masterdest = 'htdocs/clang-analyze',
\r
836 name = 'upload output',
\r
839 f.addStep(ClangToIRC())
\r
841 ################################################################################
\r
842 # factory: "docs" — builds documentation with a special asciidoc conf
\r
843 ################################################################################
\r
845 f = factories['docs'] = BuildFactory()
\r
847 # Fill the 'gitversion' property with the output of git describe --tags.
\r
848 f.addStep(shell.SetProperty(command = 'git describe --tags', property = 'gitversion'))
\r
849 cmd(f, name = 'build docs', command = [ 'make', '-C', 'docs', "ASCIIDOC=asciidoc -a linkcss -a stylesdir=http://i3wm.org/css -a scriptsdir=http://i3wm.org/js --backend=xhtml11 -f docs/asciidoc-git.conf" ])
\r
850 cmd(f, name = 'build manpages', command = "for file in $(sed 's/\.1$/.man/g' debian/i3-wm.manpages); do asciidoc -a linkcss -a stylesdir=http://i3wm.org/css -a scriptsdir=http://i3wm.org/js --backend=xhtml11 -f docs/asciidoc-git.conf \"$file\"; done")
\r
851 f.addStep(slave.MakeDirectory(dir='build/COPY-DOCS'))
\r
852 cmd(f, name = 'copy docs', command = "cp $(tr '\\n' ' ' < debian/i3-wm.docs) COPY-DOCS")
\r
853 cmd(f, name = 'copy manpages', command = "cp $(sed 's/\.1$/.html/g' debian/i3-wm.manpages | tr '\\n' ' ') COPY-DOCS")
\r
855 f.addStep(transfer.DirectoryUpload(
\r
856 slavesrc = 'COPY-DOCS',
\r
857 masterdest = 'htdocs/docs-git',
\r
859 name = 'upload docs'))
\r
861 f.addStep(DocsToIRC())
\r
863 ################################################################################
\r
864 # factory: "debian-packages" — builds Debian (sid) packages for amd64 and i386
\r
865 ################################################################################
\r
867 distributions = [ 'sid-amd64', 'sid-i386' ]
\r
868 gpg_key = 'BE1DB1F1'
\r
870 f = factories['debian-packages'] = BuildFactory()
\r
871 # We need the git repository for the Debian packaging.
\r
873 unpack_dist_tarball(f)
\r
874 cmd(f, name='copy packaging', command = "cp -r debian DIST/")
\r
876 # Add a new changelog entry to have the git version in the package version.
\r
878 name = 'update changelog',
\r
879 workdir = 'build/DIST',
\r
880 command = [ 'debchange', '-m', '-l', WithProperties('+g%(gitversion)s'), 'Automatically built' ],
\r
884 name = 'source pkg',
\r
885 command = [ 'dpkg-buildpackage', '-S', '-us', '-uc' ],
\r
886 workdir = 'build/DIST',
\r
889 for dist in distributions:
\r
890 f.addStep(slave.MakeDirectory(dir='build/RESULT-' + dist))
\r
892 # Create debian sid repository
\r
893 f.addStep(slave.MakeDirectory(dir='build/REPO-sid/conf'))
\r
894 f.addStep(transfer.StringDownload(
\r
897 Architectures: i386 amd64 source
\r
899 DebIndices: Packages Release . .gz .bz2
\r
900 DscIndices: Sources Release . .gz .bz2
\r
901 SignWith: %(gpg_key)s
\r
902 """ % { "gpg_key": gpg_key },
\r
903 slavedest = 'REPO-sid/conf/distributions',
\r
906 # add source package to repository
\r
907 reprepro_include(f, 'i3-wm*_source.changes', 'dsc')
\r
909 # Add keyring to the repository. We need to run git clone on our own because
\r
910 # the Git() step assumes there’s precisely one repository we want to deal with.
\r
911 # No big deal since the i3-autobuild-keyring repository is not big.
\r
912 cmd(f, name='clone keyring repo', command = 'git clone git://code.i3wm.org/i3-autobuild-keyring')
\r
913 reprepro_include(f, 'i3-autobuild-keyring/prebuilt/*.changes')
\r
915 for dist in distributions:
\r
916 # update the pbuilder
\r
917 cmd(f, name = 'update builder', command = 'pbuilder-' + dist + ' update')
\r
919 # build the package for each dist
\r
920 f.addStep(ShellCommand(
\r
921 logEnviron = False,
\r
922 name = 'pkg ' + dist,
\r
923 command = 'pbuilder-' + dist + ' build --binary-arch \
\r
924 --buildresult RESULT-' + dist + ' --debbuildopts -j8 i3-wm*dsc',
\r
925 warnOnFailure = True
\r
928 reprepro_include(f, 'RESULT-' + dist + '/*.changes')
\r
930 # upload the sid repo
\r
931 # Since the next step is cleaning up old files, we set haltOnFailure=True -- we
\r
932 # prefer providing old packages over providing no packages at all :).
\r
933 for directory in [ 'pool', 'dists' ]:
\r
934 f.addStep(transfer.DirectoryUpload(
\r
935 slavesrc = 'REPO-sid/' + directory,
\r
936 masterdest = 'htdocs/debian/sid/' + directory,
\r
938 name = 'upload sid ' + directory,
\r
939 haltOnFailure = True,
\r
942 f.addStep(master.MasterShellCommand(
\r
943 command = "find htdocs/debian/sid/pool -mtime +3 -exec rm '{}' \;",
\r
944 name = 'cleanup old packages',
\r
947 # We ensure there is an empty i18n/Index to speed up apt (so that it does not
\r
948 # try to download Translation-*)
\r
949 f.addStep(master.MasterShellCommand(
\r
950 command = [ 'mkdir', '-p', 'htdocs/debian/sid/dists/sid/main/i18n' ],
\r
951 name = 'create i18n folder',
\r
953 f.addStep(master.MasterShellCommand(
\r
954 command = [ 'touch', 'htdocs/debian/sid/dists/sid/main/i18n/Index' ],
\r
955 name = 'touch i18n/Index',
\r
958 ################################################################################
\r
959 # factory: "ubuntu-packages" — builds Ubuntu (precise) packages for amd64 and i386
\r
960 ################################################################################
\r
962 distributions = [ 'precise-amd64', 'precise-i386' ]
\r
963 gpg_key = 'BE1DB1F1'
\r
965 f = factories['ubuntu-packages'] = BuildFactory()
\r
966 # We need the git repository for the Debian packaging.
\r
968 unpack_dist_tarball(f)
\r
969 cmd(f, name='copy packaging', command = "cp -r debian DIST/")
\r
971 # Add a new changelog entry to have the git version in the package version.
\r
973 name = 'update changelog',
\r
974 workdir = 'build/DIST',
\r
975 command = [ 'debchange', '-m', '-l', WithProperties('+g%(gitversion)s'), 'Automatically built' ],
\r
979 name = 'source pkg',
\r
980 command = [ 'dpkg-buildpackage', '-S', '-us', '-uc' ],
\r
981 workdir = 'build/DIST',
\r
984 for dist in distributions:
\r
985 f.addStep(slave.MakeDirectory(dir='build/RESULT-' + dist))
\r
987 # Create debian sid repository
\r
988 f.addStep(slave.MakeDirectory(dir='build/REPO-sid/conf'))
\r
989 f.addStep(transfer.StringDownload(
\r
990 """Codename: precise
\r
992 Architectures: i386 amd64 source
\r
994 DebIndices: Packages Release . .gz .bz2
\r
995 DscIndices: Sources Release . .gz .bz2
\r
996 SignWith: %(gpg_key)s
\r
997 """ % { "gpg_key": gpg_key },
\r
998 slavedest = 'REPO-sid/conf/distributions',
\r
1001 # add source package to repository
\r
1002 reprepro_include_ubuntu(f, 'i3-wm*_source.changes', 'dsc')
\r
1004 # Add keyring to the repository. We need to run git clone on our own because
\r
1005 # the Git() step assumes there’s precisely one repository we want to deal with.
\r
1006 # No big deal since the i3-autobuild-keyring repository is not big.
\r
1007 cmd(f, name='clone keyring repo', command = 'git clone git://code.i3wm.org/i3-autobuild-keyring')
\r
1008 reprepro_include_ubuntu(f, 'i3-autobuild-keyring/prebuilt/*.changes')
\r
1010 for dist in distributions:
\r
1011 # update the pbuilder
\r
1012 cmd(f, name = 'update builder', command = 'pbuilder-' + dist + ' update')
\r
1014 # build the package for each dist
\r
1015 f.addStep(ShellCommand(
\r
1016 logEnviron = False,
\r
1017 name = 'pkg ' + dist,
\r
1018 command = 'pbuilder-' + dist + ' build --binary-arch \
\r
1019 --buildresult RESULT-' + dist + ' --debbuildopts -j8 i3-wm*dsc',
\r
1020 warnOnFailure = True
\r
1023 reprepro_include_ubuntu(f, 'RESULT-' + dist + '/*.changes')
\r
1025 # upload the sid repo
\r
1026 # Since the next step is cleaning up old files, we set haltOnFailure=True -- we
\r
1027 # prefer providing old packages over providing no packages at all :).
\r
1028 for directory in [ 'pool', 'dists' ]:
\r
1029 f.addStep(transfer.DirectoryUpload(
\r
1030 slavesrc = 'REPO-sid/' + directory,
\r
1031 masterdest = 'htdocs/ubuntu/precise/' + directory,
\r
1033 name = 'upload precise ' + directory,
\r
1034 haltOnFailure = True,
\r
1037 f.addStep(master.MasterShellCommand(
\r
1038 command = "find htdocs/ubuntu/precise/pool -mtime +3 -exec rm '{}' \;",
\r
1039 name = 'cleanup old packages',
\r
1042 # We ensure there is an empty i18n/Index to speed up apt (so that it does not
\r
1043 # try to download Translation-*)
\r
1044 f.addStep(master.MasterShellCommand(
\r
1045 command = [ 'mkdir', '-p', 'htdocs/ubuntu/precise/dists/sid/main/i18n' ],
\r
1046 name = 'create i18n folder',
\r
1048 f.addStep(master.MasterShellCommand(
\r
1049 command = [ 'touch', 'htdocs/ubuntu/precise/dists/sid/main/i18n/Index' ],
\r
1050 name = 'touch i18n/Index',
\r
1054 c['builders'] = []
\r
1056 # Add all builders to all buildslaves.
\r
1057 for factoryname in factories.keys():
\r
1058 c['builders'].append(BuilderConfig(
\r
1059 name = factoryname,
\r
1060 slavenames=['docsteel-vm'],
\r
1061 factory=factories[factoryname],
\r
1065 ####### STATUS TARGETS
\r
1069 authz_cfg=authz.Authz(
\r
1070 gracefulShutdown = False,
\r
1071 forceBuild = False,
\r
1072 forceAllBuilds = False,
\r
1073 pingBuilder = False,
\r
1074 stopBuild = False,
\r
1075 stopAllBuilds = False,
\r
1076 cancelPendingBuild = False,
\r
1079 c['status'].append(html.WebStatus(http_port=8010, authz=authz_cfg))
\r
1081 c['status'].append(buildbot.status.status_push.HttpStatusPush(
\r
1082 serverUrl = 'http://localhost:8080/push_buildbot',
\r
1085 ####### PROJECT IDENTITY
\r
1088 c['titleURL'] = 'http://i3wm.org/'
\r
1089 # Removed so that search engines don’t crawl it
\r
1090 c['buildbotURL'] = 'http://localhost/'
\r
1095 # This specifies what database buildbot uses to store its state. You can leave
\r
1096 # this at its default for all but the largest installations.
\r
1097 'db_url' : "sqlite:///state.sqlite",
\r
1103 <div id="footnotes"><hr /></div>
\r
1104 <div id="footer" lang="de">
\r
1105 © 2009-2011 Michael Stapelberg, <a href="/impress.html">Impressum</a>
\r