]> git.saurik.com Git - wxWidgets.git/commitdiff
Try out email notifications, just to me initially.
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Tue, 5 Feb 2008 22:29:18 +0000 (22:29 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Tue, 5 Feb 2008 22:29:18 +0000 (22:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/buildbot/config/common.xml
build/buildbot/config/include/defs.xml

index c2f94913ab7cf2efb4e5d079be588e83bc284f44..1b5fb59559afd6da0db4b207b83a191eac8fde44 100644 (file)
 
 <nightly-schedulers name="daily"/>
 
+<!--
+    Map SVN user ids to email addresses.
+-->
+
+<emaillookup name="wx-devs">
+    <xi:include href="include/wx-devs.xml" xpointer="xpointer(//*[@id='MW'])"/>
+</emaillookup>
+
+<!--
+    Notify people on the blame list when a build goes from good to bad.
+-->
+
+<mailnotifier>
+    <mode>problem</mode>
+    <lookup>wx-devs</lookup>
+</mailnotifier>
+
+<!--
+    Log every build to a mailing list.
+-->
+
+<mailnotifier>
+    <extraRecipient>mike.wetherell -at- ntlworld.com</extraRecipient>
+</mailnotifier>
+
 <!--
     Track SVN changes using the wx-cvs mailing list.
     The <prefix> is subtracted from the paths in the 'Modified Files:'
index 100314c170efd6da7a1316b40dbef70bd699ef31..e90f71fd142117e5ad97aa382ec3227173fc55be 100644 (file)
@@ -739,4 +739,52 @@ if [ -x test_gui ]; then ./test_gui; fi
     </xsl:choose>
 </xsl:template>
 
+<!--
+    email - substitute '@' for ' -at- ' in email addresses.
+-->
+<xsl:template name="emailfield">
+    <xsl:param name="content"/>
+    <xsl:param name="addr"/>
+    <xsl:variable name="at"> -at- </xsl:variable>
+    <xsl:choose>
+        <xsl:when test="contains($addr, $at)">
+            <xsl:value-of select="substring-before($addr, $at)"/>
+            <xsl:text>@</xsl:text>
+            <xsl:value-of select="substring-after($addr, $at)"/>
+        </xsl:when>
+        <xsl:otherwise>
+            <xsl:value-of select="$addr"/>
+        </xsl:otherwise>
+    </xsl:choose>
+</xsl:template>
+
+<xsl:template name="email">
+    <xsl:param name="content"/>
+    <xsl:param name="id"/>
+    <email id="{$id}"><emailfield addr="{$content}"/></email>
+</xsl:template>
+
+<xsl:template name="fromaddr">
+    <xsl:param name="content"/>
+    <fromaddr><emailfield addr="{$content}"/></fromaddr>
+</xsl:template>
+
+<xsl:template name="extraRecipient">
+    <xsl:param name="content"/>
+    <extraRecipient><emailfield addr="{$content}"/></extraRecipient>
+</xsl:template>
+
+<!--
+    mailnotifier - add a default value for <fromaddr> to <mailnotifier>
+-->
+<xsl:template name="mailnotifier">
+    <xsl:param name="content"/>
+    <mailnotifier>
+        <defaults content="{$content}">
+            <fromaddr>wx-dev -at- lists.wxwidgets.org</fromaddr>
+        </defaults>
+        <xsl:copy-of select="$content"/>
+    </mailnotifier>
+</xsl:template>
+
 </bot>