forked from jediwhale/fitsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.proj
68 lines (55 loc) · 2.43 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
61
62
63
64
65
66
67
68
<?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=".\packages\Nunit.ConsoleRunner.3.7.0\tools\nunit3-console -framework:net-4.5 .\build\sandbox\fitSharpTest.dll" />
<Exec Command=".\packages\Nunit.ConsoleRunner.3.7.0\tools\nunit3-console -framework:net-4.5 .\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" />
<ZipFiles Include="build\release\fitSharp.dll" />
<ZipFiles Include="build\release\dbfit.dll" />
<ZipFiles Include="build\release\dbfit.oracle.dll" />
<ZipFiles Include="build\release\dbfit.sqlserver.dll" />
<ZipFiles Include="build\release\dbfit.mysql.dll" />
<ZipFiles Include="build\release\dbfit.sybase.dll" />
<ZipFiles Include="build\release\Runner.exe" />
<ZipFiles Include="build\release\RunnerW.exe" />
<ZipFiles Include="license.txt" />
</ItemGroup>
<Target Name="zip">
<Exec Command="PowerShell -command Compress-Archive @(ZipFiles, ',') binary\mylatest.zip -Force" />
</Target>
</Project>