wxWidgets/build/buildbot/config/include/testdrive-win.xml
2007-12-12 21:41:56 +00:00

109 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Name: include/testdrive-win.xml
Purpose: Declarations for the testdrive Windows build slave
Author: Mike Wetherell
RCS-ID: $Id$
Copyright: (c) 2007 Mike Wetherell
Licence: wxWidgets licence
-->
<bot xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xsl:version="1.0">
<xi:include href="testdrive.xml"/>
<!--
post-checkout - post checkout <command> run by <checkout>
Usage: <post-checkout/>
The command is executed inside the shared checkout dir, and normally it
is used to make a private copy.
-->
<xsl:template name="post-checkout">
<command>
if exist "%BUILDDIR%" (rmdir /s/q "%BUILDDIR%" || exit 1)
xcopy /s/q/i . "%BUILDDIR%" || (rmdir /s/q "%BUILDDIR%" &amp; exit 1)
</command>
</xsl:template>
<!--
profile - see <steps>.
-->
<xsl:template name="profile">
<command>
set BUILDDIR=%USERPROFILE%\build
</command>
</xsl:template>
<!--
prologue - see <steps>.
-->
<xsl:template name="prologue">
<xsl:param name="content"/>
<xsl:param name="build"/>
<xsl:variable name="name">
<lower-case>
<get name="name" build="{$build}"/>
</lower-case>
</xsl:variable>
<command>
<xsl:choose>
<xsl:when test="contains($name, 'vc++') or contains($name, 'msvc')">
<prologue-msvc/>
</xsl:when>
<xsl:when test="contains($name, 'cygwin')">
<prologue-cygwin/>
</xsl:when>
<xsl:otherwise>
<prologue-default/>
</xsl:otherwise>
</xsl:choose>
</command>
</xsl:template>
<xsl:template name="prologue-msvc">
call "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd" /SRV64
set LINK=bufferoverflowu.lib
cd /d "%BUILDDIR%"
</xsl:template>
<xsl:template name="prologue-cygwin">
call h:\cygwin\cyg-vars.bat
cd /d "%BUILDDIR%"
sh -c \
</xsl:template>
<xsl:template name="prologue-default">
cd /d "%BUILDDIR%"
</xsl:template>
<!--
epilogue - see <steps>.
-->
<xsl:template name="epilogue">
<xsl:choose>
<xsl:when test="position() = last()">
<command>
<cleanup/>
</command>
</xsl:when>
<xsl:otherwise>
<if-del-on-fail>
<command>
if ERRORLEVEL 1 (<cleanup/>)
</command>
</if-del-on-fail>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="cleanup">
cd /d "%USERPROFILE%" &amp; rmdir /s/q "%BUILDDIR%" &amp; exit %ERRORLEVEL%
</xsl:template>
</bot>