2006-10-01 Mark Rowe <opendarwin.org@bdash.net.nz>
[WebKit-https.git] / WebKitTools / BuildSlaveSupport / build.webkit.org-config / webkit / status.py
1 from buildbot.status import html, mail, words, client
2 from twisted.web.rewrite import RewriterResource
3
4 class MyWaterfall(html.Waterfall):
5     def setup(self):
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'))
12                                       )):
13                 request.postpath = ['results', request.postpath[-1]]
14                 request.path = '/' + '/'.join(request.prepath + request.postpath)
15         self.site.resource = RewriterResource(rootResource, rewriteXSL)
16         
17 waterfall = MyWaterfall(http_port=8010, css="buildbot.css", results_directory="/home/buildresults/results/", allowForce=False)
18
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"),
25                                   mode="breakage")
26
27 IRC = words.IRC(host="irc.freenode.net",
28                 nick="webkit-build",
29                 channels=["#webkit-build"],
30                 announceAllBuilds=True)
31
32 PBClient = client.PBListener("tcp:9988", "statusClient", "clientpw")
33
34 def getStatusListeners():
35     return [waterfall, allBuildsEmail, breakageEmail, IRC, PBClient]
36