Here's an example of how we call it.
I've chopped out many of our specific targets.
Note that UnitTests.dll is one assembly in our solution of many assembly
dll's and exe's
Environment is Windows XP, VisualStudio dotNet 2003
Regards
Bryan White
'Brewmanz'
Senior Developer
SoftTech NZ
====================
sample.build =
<?xml version="1.0"?>
<!--
IMPORTANT:
Requirements:
1. NAnt version 0.85
2. .NET SDK 1.1
Instructions:
1. Change the "gs.credentials" and "gs" properties below to reflect
your own environment
2. Download and unzip NAnt 0.85 or later (available from
http://nant.sourceforge.net) and add the \bin folder to your path
3. Create a Mars build folder (e.g. c:\NMarsBuild_2.2)
4. Get this file from GS into the folder created in 4 above
5. Open a DOS prompt in the above folder and type "nant" and press
enter
-->
<project name="Mars.NET 2.2.x">
<!-- Build properties -->
<property name="nant.settings.currentframework" value="net-1.1"/>
<property name="basename" value="mySuiteSolution"/>
<property name="debug" value="false"/>
<property name="configuration" value="release"/>
<property name="build.dir" value=".\"/>
<property name="distr.dir" value="Distribution"/>
<property name="compiler"
value="C:\WINNT\Microsoft.NET\Framework\v1.1.4322\csc"/>
<property name="version" value="Nant Build"/>
<!-- Install properties -->
<property name="gs.InstallScript"
value="/MarsDotNet/InstallScript/"/>
<property name="gs.database"
value="/MarsDotNet/Database/"/>
<property name="instscript.dir"
value="MarsInstall/InstallScript/"/>
<property name="install.dir" value="MarsInstall/"/>
<property name="instsource.dir"
value="MarsInstall\InstallSource\"/>
<property name="gs.build.install" value="Mars Install.exe"/>
<property name="wise"
value="C:\Program Files\Wise Installation System\Wise32.exe"/>
<!-- Global Source properties -->
<property name="gs.credentials" value="MarsBuild
XXXX NN.NN.NN.NN PPPP"/>
<property name="gs"
value="GS.exe"/>
<property name="gs.ss.proj"
value="/MarsDotNet/MarsSolution/"/>
<property name="gs.scs.proj"
value="/MarsDotNet/mySuiteSolution/"/>
<property name="gs.rs.proj"
value="/MarsDotNet/ReportSolution/"/>
<property name="gs.sge.proj"
value="/MarsDotNet/StockGlassEditor/"/>
<property name="gs.build.proj"
value="/MarsDotNet/MarsBuild/"/>
<property name="gs.build.zip"
value="Mars.NET.zip"/>
<property name="gs.build.verfile"
value="Version.txt"/>
<property name="gs.build.verscript" value="Version.cs"/>
<!-- ############### huge chunk removed ################# -->
<target name="addZipDistributionToGlobalSource">
<exec program="${gs}" commandline='${gs.credentials} CheckOut
"${gs.build.proj}${gs.build.zip}" "${build.dir}"' />
<delete file="${gs.build.zip}" failonerror="false" />
<copy file="temp.zip" tofile="${gs.build.zip}" />
<delete file="temp.zip" failonerror="false" />
<exec program="${gs}" commandline='${gs.credentials} CheckIn
"${gs.build.proj}${gs.build.zip}" "${version}"' />
</target>
<target name="runUnitTests">
<exec program="${build.dir}MarsSolution\Libs\nunit-gui.exe"
commandline="${build.dir}MarsSolution\UnitTests\bin\release\UnitTests.dll
/run" />
</target>
<!-- ///////////////// Possible Targets to execute
/////////////////////////////////////////////////////////////////// -->
<!-- ############### huge chunk removed ################# -->
<target name="buildWithoutGet" description="Build only without cleaning
or getting from GS">
<call target="buildmySuite" />
<call target="buildMarsSolution" />
<call target="buildReportSolution" />
<call target="buildStockGlassEditorSolution" />
<call target="copyFilesToDistribution" />
</target>
<target name="buildAndRunUnitTests" description="Build and run Unit
Tests (no checking into GS)">
<call target="clean" />
<call target="getLatestSource" />
<call target="buildmySuite" />
<call target="buildMarsSolutionIncludingUnitTests" />
<call target="runUnitTests" />
</target>
<target name="runUnitTestsNoClean" description="Build and run Unit Tests
(no checking into GS)">
<call target="getLatestSource" />
<call target="buildMarsSolutionIncludingUnitTests" />
<call target="runUnitTests" />
</target>
</project>
====================
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of nbl prasad
Sent: Monday, 13 March 2006 23:32
To: [email protected]
Subject: [NAnt-users] Help on Integrating Nant with Nunit
Hi All,
Have anyone integrated Nant with Nunit, if so can
anyone send me an example how to integrate.
Thanks and Regards
Prasad
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users