<?xml version="1.0" ?>
<project name="GolfMine" default="test" xmlns="http://nant.sf.net/schemas/nant.xsd">
<property name="build.dir" value="build" />
<property name="nant.settings.currentframework" value="net-3.5" />
<!-- User targets -->
<target name="clean" description="Delete Automated Build artifacts">
<delete dir="${build.dir}" if="${directory::exists(build.dir)}"/>
</target>
<target name="compile" description="Compiles using the AutomatedDebug Configuration">
<msbuild project="src\GolfMine.sln">
<property name="Configuration" value="AutomatedDebug" />
</msbuild>
</target>
<target name="test" depends="compile, run-unit-tests"
description="Compile and Run Tests" />
<target name="full" depends="clean, test, dist" description="Compiles, tests, and produces distributions" />
<!-- Internal targets -->
<target name="run-unit-tests">
<mkdir dir="${build.dir}\test-reports" />
<exec program="regsvr32" workingdir="tools\NCover" commandline="/s CoverLib.dll" />
<exec program="tools\ncover\NCover.Console.exe"
workingdir="${build.dir}\Debug\UnitTests">
<arg value="//w "."" />
<arg value="//x "..\..\test-reports\Coverage.xml"" />
<arg value=""..\..\..\tools\nunit\nunit-console.exe"" />
<arg value=""GolfMine.UnitTests.dll" "/xml:..\..\test-reports\UnitTests.xml" "/nologo"" />
</exec>
</target>
<target name="dist">
<copy todir="${build.dir}\dist">
<fileset basedir="${build.dir}\Debug\GolfMine">
<include name="**\*"/>
<exclude name="**\*.pdb" />
</fileset>
</copy>
<zip zipfile="${build.dir}\GolfMine.zip">
<fileset basedir="${build.dir}\dist">
<include name="**\*" />
</fileset>
</zip>
</target>
</project>
Monday, 14 December 2009
GolfMine.build
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment