[pypy-commit] buildbot default: add an IRC bot, which will notify when builds start and finish

antocuni noreply at buildbot.pypy.org
Tue Aug 9 10:00:25 CEST 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r579:d48c58e19853
Date: 2011-08-09 10:02 +0200
http://bitbucket.org/pypy/buildbot/changeset/d48c58e19853/

Log:	add an IRC bot, which will notify when builds start and finish

diff --git a/bot2/pypybuildbot/master.py b/bot2/pypybuildbot/master.py
--- a/bot2/pypybuildbot/master.py
+++ b/bot2/pypybuildbot/master.py
@@ -1,6 +1,7 @@
 from buildbot.scheduler import Nightly
 from buildbot.buildslave import BuildSlave
 from buildbot.status.html import WebStatus
+from buildbot.status.words import IRC
 from buildbot.process.builder import Builder
 from pypybuildbot.pypylist import PyPyList
 
@@ -17,6 +18,13 @@
 
 
 status = WebStatus(httpPortNumber, allowForce=True)
+ircbot = IRC(host="irc.freenode.org",
+             nick="bbot2",
+             channels=["#pypy"],
+             notify_events={
+                 'started': 1,
+                 'finished': 1,
+             })
 
 # pypy test summary page
 summary = load('pypybuildbot.summary')
@@ -198,7 +206,7 @@
             ], branch=None, hour=3, minute=0)
     ],
 
-    'status': [status],
+    'status': [status, ircbot],
 
     'slaves': [BuildSlave(name, password)
                for (name, password)


More information about the pypy-commit mailing list