/LinFu.build

http://github.com/philiplaureano/LinFu · Bazel · 85 lines · 84 code · 1 blank · 0 comment · 0 complexity · 63deece73c4438d291241188ebf8ecad MD5 · raw file

  1. <?xml version="1.0" ?>
  2. <project name="LinFu" default="merge" xmlns="http://nant.sf.net/schemas/nant.xsd">
  3. <property name="build.dir" value="build" />
  4. <property name="nant.settings.currentframework" value="net-3.5" />
  5. <!-- User targets -->
  6. <target name="clean" description="Delete Automated Build artifacts">
  7. <delete dir="${build.dir}\Debug" if="${directory::exists(build.dir)}"/>
  8. <delete dir="${build.dir}\" if="${directory::exists(build.dir)}"/>
  9. </target>
  10. <target name="compile" description="Compiles using the AutomatedDebug Configuration">
  11. <msbuild project="src\SampleFileWatcherLibrary\SampleFileWatcherLibrary.csproj">
  12. <property name="Configuration" value="AutomatedDebug" />
  13. <property name="OutputPath" value="build\Debug\UnitTests"/>
  14. </msbuild>
  15. <msbuild project="src\LinFu.sln">
  16. <property name="Configuration" value="AutomatedDebug" />
  17. </msbuild>
  18. </target>
  19. <target name="compile-release">
  20. <msbuild project="src\LinFu.sln">
  21. <property name="Configuration" value="Release" />
  22. </msbuild>
  23. </target>
  24. <target name="merge" depends="clean, compile, run-unit-tests">
  25. <msbuild project="src\ILMerge.MSBuild"/>
  26. </target>
  27. <target name="ioc" depends="compile-release, run-unit-tests">
  28. <msbuild project="src\LinFu.IoC.ILMerge.MSBuild">
  29. <property name="Configuration" value="Release" />
  30. </msbuild>
  31. </target>
  32. <target name="aop" depends="compile-release, run-unit-tests">
  33. <msbuild project="src\LinFu.AOP.ILMerge.MSBuild">
  34. <property name="Configuration" value="Release" />
  35. </msbuild>
  36. </target>
  37. <target name="test" depends="compile, run-unit-tests"
  38. description="Compile and Run Tests" />
  39. <target name="full" depends="clean, test, compile, dist" description="Compiles, tests, and produces distributions" />
  40. <!-- Internal targets -->
  41. <target name="run-unit-tests">
  42. <mkdir dir="${build.dir}\test-reports" />
  43. <exec program="tools\nunit\nunit-console.exe"
  44. workingdir="${build.dir}\Debug\UnitTests">
  45. <arg value="&quot;LinFu.UnitTests.dll&quot; &quot;/xml:..\..\test-reports\UnitTests.xml&quot; &quot;/nologo&quot;" />
  46. </exec>
  47. </target>
  48. <target name="run-ncover">
  49. <mkdir dir="${build.dir}\test-reports" />
  50. <exec program="regsvr32" workingdir="tools\NCover" commandline="/s CoverLib.dll" />
  51. <exec program="tools\ncover\NCover.Console.exe"
  52. workingdir="${build.dir}\Debug\UnitTests">
  53. <arg value="//w &quot;.&quot;" />
  54. <arg value="//x &quot;..\..\test-reports\Coverage.xml&quot;" />
  55. <arg value="&quot;..\..\..\tools\nunit\nunit-console.exe&quot;" />
  56. <arg value="&quot;LinFu.UnitTests.dll&quot; &quot;/xml:..\..\test-reports\UnitTests.xml&quot; &quot;/nologo&quot;" />
  57. </exec>
  58. </target>
  59. <target name="dist">
  60. <copy todir="${build.dir}\dist">
  61. <fileset basedir="${build.dir}">
  62. <include name="**\LinFu.Core.dll"/>
  63. <include name="**\LinFu.Core.xml"/>
  64. <exclude name="**\*.pdb" />
  65. </fileset>
  66. </copy>
  67. <zip zipfile="${build.dir}\LinFu.zip">
  68. <fileset basedir="${build.dir}\dist">
  69. <include name="**\*" />
  70. </fileset>
  71. </zip>
  72. </target>
  73. </project>