forked from jediwhale/fitsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.proj
60 lines (47 loc) · 2.13 KB
/
build.proj
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
<?xml version="1.0"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
DefaultTargets="solution;unittests;storytests" >
<Import Project="binary\tools\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
<PropertyGroup>
<Config>Debug</Config>
</PropertyGroup>
<Target Name="all" DependsOnTargets="solution;unittests;storytests;dbfittests" />
<Target Name="deploy" DependsOnTargets="releasesolution;zip" />
<Target Name="solution">
<MSBuild Projects="fitsharp.sln"
Properties="Configuration=$(Config)" />
</Target>
<!-- Set up a sandbox with a fixed name that story test pages
and configurations can refer to. -->
<Target Name="sandbox" DependsOnTargets="solution">
<ItemGroup>
<Assemblies Include="build\$(Config)\**\*"/>
</ItemGroup>
<Copy
SourceFiles="@(Assemblies)"
DestinationFolder="build\sandbox\%(Assemblies.RecursiveDir)"
/>
</Target>
<Target Name="unittests" DependsOnTargets="sandbox">
<Exec Command="binary\tools\nunit\nunit-console -nologo -framework:net-4.0 .\build\sandbox\fitSharpTest.dll" />
<Exec Command="binary\tools\nunit\nunit-console -nologo -framework:net-4.0 .\build\sandbox\fitTest.dll" />
</Target>
<Target Name="storytests" DependsOnTargets="sandbox">
<Exec Command=".\build\sandbox\runner -c storytest.config.xml" />
</Target>
<Target Name="dbfittests">
<Exec Command="binary\tools\nunit\nunit-console -nologo .\build\sandbox\dbfitTest.dll" />
<Exec Command="java -jar \apps\fitnesse\fitnesse.jar -o -d .\document -r FitNesseRoot -c "DbFitTests?suite&format=text"" />
</Target>
<Target Name="releasesolution">
<MSBuild Projects="fitsharp.sln"
Properties="Configuration=Release" />
</Target>
<ItemGroup>
<ZipFiles Include="build\release\fit.dll;build\release\fitSharp.dll;build\release\dbfit.dll;build\release\dbfit.oracle.dll;build\release\dbfit.sqlserver.dll;build\release\dbfit.mysql.dll;build\release\dbfit.sybase.dll;build\release\Runner*.exe;*License.txt" />
</ItemGroup>
<Target Name="zip">
<Zip Files="@(ZipFiles)" Flatten="Yes"
ZipFileName="binary\mylatest.zip" />
</Target>
</Project>