PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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