From: <joe...@us...> - 2002-11-10 17:36:08
|
Update of /cvsroot/nmock/nmock In directory usw-pr-cvs1:/tmp/cvs-serv1042 Added Files: nmock.build Log Message: NAnt build file added for build/test/release. --- NEW FILE: nmock.build --- <project name="NMock" default="release"> <target name="compile" description="Compile core library"> <mkdir dir="build"/> <csc target="library" output="build/nmock.dll" debug="true"> <sources> <includes name="src/**.cs"/> <includes name="test/**.cs"/> <includes name="sample/**.cs"/> </sources> <references basedir="lib"> <includes name="*.dll"/> </references> </csc> </target> <target name="test" depends="compile" description="Run unit tests"> <exec program="lib\nunit-console.exe" commandline="/assembly:build\nmock.dll"/> </target> <target name="clean" description="Clean up built files"> <!-- the delete task fails if the dir doesn't exist, so mkdir just in case --> <mkdir dir="build"/> <mkdir dir="dist"/> <delete dir="build"/> <delete dir="dist"/> </target> <target name="release" depends="clean, test" description="Generate release"> <mkdir dir="dist"/> <!-- recompile cleaner dll, without tests and samples and no debug symbols --> <csc target="library" output="dist/nmock.dll" debug="false"> <sources> <includes name="src/**.cs"/> </sources> </csc> <echo message="*********************************"/> <echo message="* Release built: dist/nmock.dll *"/> <echo message="*********************************"/> </target> </project> |