forked from VientoDigital/codegenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iCodeGenerator.build
71 lines (61 loc) · 2.76 KB
/
iCodeGenerator.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
<?xml version="1.0" ?>
<project name="iCodeGenerator" default="notest" xmlns="http://nant.sf.net/schemas/nant.xsd">
<property name="build.dir" value="build" />
<!-- User targets -->
<target name="clean" description="Delete Automated Build artifacts">
<delete dir="${build.dir}" if="${directory::exists(build.dir)}"/>
</target>
<target name="compile" description="Compiles using the AutomatedDebug Configuration">
<solution solutionfile="src\iCodeGenerator.sln" configuration="AutomatedDebug" />
</target>
<target name="test" depends="compile, run-unit-tests"
description="Compile and Run Tests" />
<target name="deploy" depends="clean, compile, dist" description="Compiles and produces distributions" />
<target name="full" depends="clean, test, dist" description="Compiles, tests, and produces distributions" />
<!-- Internal targets -->
<target name="run-unit-tests">
<copy file="src\DataTypeConverter\DataTypeMapping.xml" tofile="${build.dir}\Debug\UnitTests\DataTypeMapping.xml" />
<mkdir dir="${build.dir}\test-reports" />
<exec program="regsvr32" workingdir="tools\NCover" commandline="/s CoverLib.dll" />
<!-- This runs NUnit through NCover.org version 1.3, giving coverage results.
If you don't want to use NCover, delete this 'exec' instance, and use the plain NUnit one below -->
<exec
program="tools\NCover\NCover.Console.exe"
workingdir="${build.dir}\Debug\UnitTests">
<arg value="/w" />
<arg value="." />
<arg value="/o" />
<arg value="..\..\test-reports\Coverage.xml" />
<arg value="/c" />
<arg value=""..\..\..\tools\nunit\nunit-console.exe"" />
<arg value=""iCodeGenerator.UnitTests.dll /xml:..\..\test-reports\UnitTests.xml /nologo"" />
</exec>
<!--
<exec program="nunit-console.exe" basedir="tools\nunit" workingdir="${build.dir}\Debug\UnitTests">
<arg value="iCodeGenerator.UnitTests.dll" />
<arg value="/xml:..\..\test-reports\UnitTests.xml" />
</exec>
-->
</target>
<target name="dist">
<copy file="src\DataTypeConverter\DataTypeMapping.xml" tofile="${build.dir}\Debug\iCodeGeneratorConsole\DataTypeMapping.xml" />
<copy todir="${build.dir}\dist\Console">
<fileset basedir="${build.dir}\Debug\iCodeGeneratorConsole">
<include name="**\*"/>
<exclude name="**\*.pdb" />
</fileset>
</copy>
<copy file="src\DataTypeConverter\DataTypeMapping.xml" tofile="${build.dir}\Debug\iCodeGeneratorGui\DataTypeMapping.xml" />
<copy todir="${build.dir}\dist\Windows">
<fileset basedir="${build.dir}\Debug\iCodeGeneratorGui">
<include name="**\*"/>
<exclude name="**\*.pdb" />
</fileset>
</copy>
<zip zipfile="${build.dir}\iCodeGenerator.zip">
<fileset basedir="${build.dir}\dist">
<include name="**\*" />
</fileset>
</zip>
</target>
</project>