]> git.saurik.com Git - wxWidgets.git/blobdiff - build/buildbot/config/include/csleobuild.xml
Removed queuedResize code again as GTK+ does this internally already
[wxWidgets.git] / build / buildbot / config / include / csleobuild.xml
index 5460694d0c3938b6723c2e8010bdf4b9e35ced64..e5f7ff877e28d6e77a9567670ee74a70b8b3c9ff 100644 (file)
@@ -1 +1,114 @@
-<?xml version="1.0" encoding="utf-8"?>\r\r<!--\r    Name:       include/csleobuild.xml\r    Purpose:    Declarations for the csleobuild slave\r    Author:\r    RCS-ID:     $Id$\r    Copyright:\r    Licence:    wxWidgets licence\r-->\r\r<bot xmlns:xsl="http://www.w3.org/1999/XSL/Transform"\r     xmlns:xi="http://www.w3.org/2001/XInclude">\r\r<xi:include href="defs.xml"/>\r\r<!--\r    build - Override <build> to add a slave lock. This has the effect of\r            serialising all the builds on this machine\r-->\r\r<xsl:template name="build">\r    <xsl:param name="content"/>\r    <build>\r        <lock>slave</lock>\r        <xsl:copy-of select="$content"/>\r    </build>\r</xsl:template>\r\r<!--\r    checkout - checks out to a shared directory\r\r    Checks out to a directory '../$branch' shared between builds. Then creates\r    a directory 'build' for this job to build in, and 'src' which is a link to\r    the shared sources. This relies on all builds for the same branch being\r    serialised with lock so that one build doesn't update the sources while\r    another is building them.\r\r    Usage typically just:\r        <checkout/>\r    for the trunk, or:\r        <checkout branch="branches/WX_2_8_BRANCH"/>\r    to checkout a branch.\r-->\r<xsl:template name="checkout">\r    <xsl:param name="content"/>\r    <xsl:param name="branch" select="'trunk'"/>\r    <xsl:variable name="nodes" select="exsl:node-set($content)"/>\r    <svn>\r        <xsl:if test="not($nodes/svnurl)">\r            <xsl:if test="not($nodes/baseURL)">\r                <baseURL><SVN_URL/></baseURL>\r            </xsl:if>\r            <xsl:if test="not($nodes/defaultBranch)">\r                <defaultBranch><xsl:value-of select="$branch"/></defaultBranch>\r            </xsl:if>\r        </xsl:if>\r        <xsl:if test="not($nodes/workdir)">\r            <workdir>../<xsl:value-of select="$branch"/></workdir>\r        </xsl:if>\r        <xsl:copy-of select="$content"/>\r    </svn>\r    <sourcecommand>\r        <description>creating build directory</description>\r        <descriptionDone>create build directory</descriptionDone>\r        <command>\r            rm -rf build &amp;&amp;\r            mkdir build &amp;&amp;\r            ln -sf ../<xsl:value-of select="$branch"/> src\r        </command>\r    </sourcecommand>\r</xsl:template>\r\r<!--\r    configure - use '../src/configure' as the default configure command,\r                include disable-precomp-headers in the default options and\r                post process the Makefiles to use ccache.\r\r    Usage: <configure options="-with-foobar"/>\r-->\r<xsl:template name="configure">\r    <xsl:param name="content"/>\r    <xsl:param name="options"/>\r    <configure>\r        <copy-with-defaults content="{$content}">\r            <command>../src/configure --disable-precomp-headers <xsl:value-of select="normalize-space($options)"/></command>\r        </copy-with-defaults>\r        <command>find . -name Makefile | xargs perl -pi -e 's/^(?:CC|CXX) = /$&amp;ccache /'</command>\r    </configure>\r</xsl:template>\r\r<!--\r    run-tests - build step to run the test suites.\r-->\r<xsl:template name="run-tests">\r    <xsl:param name="content"/>\r    <test>\r        <defaults content="{$content}">\r            <description>running tests</description>\r            <descriptionDone>run tests</descriptionDone>\r            <warnOnFailure/>\r        </defaults>\r        <copy-with-defaults content="{$content}">\r            <command>\r                export DYLD_LIBRARY_PATH=../lib\r                cd tests &amp;&amp;\r                ./test &amp;&amp;\r                ./test_gui\r            </command>\r        </copy-with-defaults>\r    </test>\r</xsl:template>\r\r</bot>\r
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+    Name:       include/csleobuild.xml
+    Purpose:    Declarations for the csleobuild slave
+    Author:     Michael Wetherel, Stefan Csomor
+    RCS-ID:     $Id$
+    Copyright:  (c) Stefan Csomor
+    Licence:    wxWidgets licence
+-->
+
+<bot xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+     xmlns:xi="http://www.w3.org/2001/XInclude">
+
+<xi:include href="defs.xml"/>
+
+<!--
+    build - Override <build> to add a slave lock. This has the effect of
+            serialising all the builds on this machine
+-->
+<xsl:template name="build">
+    <xsl:param name="content"/>
+    <build>
+        <lock>slave</lock>
+        <xsl:copy-of select="$content"/>
+    </build>
+</xsl:template>
+
+<!--
+    checkout - checks out to a shared directory
+
+    Checks out to a directory '../$branch' shared between builds. Then creates
+    a directory 'build' for this job to build in, and 'src' which is a link to
+    the shared sources. This relies on all builds for the same branch being
+    serialised with lock so that one build doesn't update the sources while
+    another is building them.
+
+    Usage typically just:
+        <checkout/>
+    for the trunk, or:
+        <checkout branch="branches/WX_2_8_BRANCH"/>
+    to checkout a branch.
+-->
+<xsl:template name="checkout">
+    <xsl:param name="content"/>
+    <xsl:param name="branch" select="'trunk'"/>
+    <xsl:variable name="nodes" select="exsl:node-set($content)"/>
+    <svn>
+        <xsl:if test="not($nodes/svnurl)">
+            <xsl:if test="not($nodes/baseURL)">
+                <baseURL><SVN_URL/></baseURL>
+            </xsl:if>
+            <xsl:if test="not($nodes/defaultBranch)">
+                <defaultBranch><xsl:value-of select="$branch"/></defaultBranch>
+            </xsl:if>
+        </xsl:if>
+        <xsl:if test="not($nodes/workdir)">
+            <workdir>../<xsl:value-of select="$branch"/></workdir>
+        </xsl:if>
+        <xsl:copy-of select="$content"/>
+    </svn>
+    <shellcommand>
+        <description>creating build directory</description>
+        <descriptionDone>create build directory</descriptionDone>
+        <workdir>.</workdir>
+        <command>
+            rm -rf build &amp;&amp;
+            mkdir build &amp;&amp;
+            ln -sf ../<xsl:value-of select="$branch"/> src
+        </command>
+    </shellcommand>
+</xsl:template>
+
+<!--
+    configure - use '../src/configure' as the default configure command,
+                include disable-precomp-headers in the default options and
+                post process the Makefiles to use ccache.
+
+    Usage: <configure options="-with-foobar"/>
+-->
+<xsl:template name="configure">
+    <xsl:param name="content"/>
+    <xsl:param name="options"/>
+    <configure>
+        <copy-with-defaults content="{$content}">
+            <command>../src/configure --disable-precomp-headers <xsl:value-of select="normalize-space($options)"/></command>
+        </copy-with-defaults>
+        <command>find . -name Makefile | xargs perl -pi -e 's/^(?:CC|CXX) = /$&amp;ccache /'</command>
+    </configure>
+</xsl:template>
+
+<!--
+    run-tests - build step to run the test suites.
+-->
+<xsl:template name="run-tests">
+    <xsl:param name="content"/>
+    <test>
+        <defaults content="{$content}">
+            <description>running tests</description>
+            <descriptionDone>run tests</descriptionDone>
+            <warnOnFailure/>
+        </defaults>
+        <copy-with-defaults content="{$content}">
+            <command>
+                export DYLD_LIBRARY_PATH=../lib
+                cd tests &amp;&amp;
+                ./test &amp;&amp;
+                ./test_gui
+            </command>
+        </copy-with-defaults>
+    </test>
+</xsl:template>
+
+</bot>