1 from buildbot.status import html, mail, words, client
2 from twisted.web.rewrite import RewriterResource
4 class MyWaterfall(html.Waterfall):
6 html.Waterfall.setup(self)
7 rootResource = self.site.resource
8 def rewriteXSL(request):
9 if request.postpath and (request.postpath[-1].endswith('.xsl') or
10 (request.postpath[0] == 'results' and (request.postpath[-1].endswith('.css') or
11 request.postpath[-1].endswith('.js'))
13 request.postpath = ['results', request.postpath[-1]]
14 request.path = '/' + '/'.join(request.prepath + request.postpath)
15 self.site.resource = RewriterResource(rootResource, rewriteXSL)
17 waterfall = MyWaterfall(http_port=8010, css="buildbot.css", results_directory="/home/buildresults/results/", allowForce=False)
19 allBuildsEmail = mail.MailNotifier(fromaddr="buildbot@webkit.org",
20 extraRecipients=["mark+webkit-builds@bdash.net.nz"],
21 sendToInterestedUsers=False)
22 breakageEmail = mail.MailNotifier(fromaddr="buildbot@webkit.org",
23 extraRecipients=["mark+webkit-builds@bdash.net.nz"],
24 lookup=mail.Domain("opensource.apple.com"),
27 IRC = words.IRC(host="irc.freenode.net",
29 channels=["#webkit-build"],
30 announceAllBuilds=True)
32 PBClient = client.PBListener("tcp:9988", "statusClient", "clientpw")
34 def getStatusListeners():
35 return [waterfall, allBuildsEmail, breakageEmail, IRC, PBClient]