This repository has been archived by the owner on Aug 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathLinFu.build
85 lines (73 loc) · 3.14 KB
/
LinFu.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" ?>
<project name="LinFu" default="merge" 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}\Debug" if="${directory::exists(build.dir)}"/>
<delete dir="${build.dir}\" if="${directory::exists(build.dir)}"/>
</target>
<target name="compile" description="Compiles using the AutomatedDebug Configuration">
<msbuild project="src\SampleFileWatcherLibrary\SampleFileWatcherLibrary.csproj">
<property name="Configuration" value="AutomatedDebug" />
<property name="OutputPath" value="build\Debug\UnitTests"/>
</msbuild>
<msbuild project="src\LinFu.sln">
<property name="Configuration" value="AutomatedDebug" />
</msbuild>
</target>
<target name="compile-release">
<msbuild project="src\LinFu.sln">
<property name="Configuration" value="Release" />
</msbuild>
</target>
<target name="merge" depends="clean, compile, run-unit-tests">
<msbuild project="src\ILMerge.MSBuild"/>
</target>
<target name="ioc" depends="compile-release, run-unit-tests">
<msbuild project="src\LinFu.IoC.ILMerge.MSBuild">
<property name="Configuration" value="Release" />
</msbuild>
</target>
<target name="aop" depends="compile-release, run-unit-tests">
<msbuild project="src\LinFu.AOP.ILMerge.MSBuild">
<property name="Configuration" value="Release" />
</msbuild>
</target>
<target name="test" depends="compile, run-unit-tests"
description="Compile and Run Tests" />
<target name="full" depends="clean, test, compile, dist" description="Compiles, tests, and produces distributions" />
<!-- Internal targets -->
<target name="run-unit-tests">
<mkdir dir="${build.dir}\test-reports" />
<exec program="tools\nunit\nunit-console.exe"
workingdir="${build.dir}\Debug\UnitTests">
<arg value=""LinFu.UnitTests.dll" "/xml:..\..\test-reports\UnitTests.xml" "/nologo"" />
</exec>
</target>
<target name="run-ncover">
<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=""LinFu.UnitTests.dll" "/xml:..\..\test-reports\UnitTests.xml" "/nologo"" />
</exec>
</target>
<target name="dist">
<copy todir="${build.dir}\dist">
<fileset basedir="${build.dir}">
<include name="**\LinFu.Core.dll"/>
<include name="**\LinFu.Core.xml"/>
<exclude name="**\*.pdb" />
</fileset>
</copy>
<zip zipfile="${build.dir}\LinFu.zip">
<fileset basedir="${build.dir}\dist">
<include name="**\*" />
</fileset>
</zip>
</target>
</project>