forked from BrightstarDB/BrightstarDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.proj
93 lines (74 loc) · 3.69 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<Project ToolsVersion="4.0" DefaultTargets="BuildAndTest" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<NoXamarin Condition=" '$(NoXamarin)' == '' ">False</NoXamarin>
<NUnitPath Condition=" '$(NUnitPath)' == '' ">C:\Program Files (x86)\NUnit 2.6.2\bin</NUnitPath>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" />
<Target Name="BuildAndTest" DependsOnTargets="Build;Test">
</Target>
<!-- Build Targets -->
<Target Name="Build" DependsOnTargets="BuildCore;BuildMobile;BuildPortable;BuildXamarin;BuildTools">
</Target>
<Target Name="BuildCore">
<MSBuild Projects="src\core\core.sln"
Properties="Configuration=$(Configuration)"
Targets="Clean;Build"/>
</Target>
<Target Name="BuildMobile">
<MSBuild Projects="src\mobile\mobile.sln"
Properties="Configuration=$(Configuration)"
Targets="Clean;Build"/>
</Target>
<Target Name="BuildPortable">
<MSBuild Projects="src\portable\portable.sln"
Properties="Configuration=$(Configuration)"
Targets="Clean;Build"/>
</Target>
<Target Name="BuildXamarin" Condition="!$(NoXamarin) AND Exists('$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets')">
<MSBuild Projects="src\portable\xamarin.sln"
Properties="Configuration=$(Configuration)"
Targets="Clean;Build"/>
</Target>
<Target Name="BuildTools">
<MSBuild Projects="src\tools\Polaris\Polaris.sln"
Properties="Configuration=$(Configuration)"
Targets="Clean;Build"/>
</Target>
<!-- Test Targets -->
<Target Name="ResultsDir">
<MakeDir Directories="TestResults"/>
</Target>
<Target Name="Test" DependsOnTargets="TestCore;TestPortable" />
<Target Name="TestCore">
<CallTarget Targets="_TestInternal;_TestCore;_TestEntityFramework;_TestOData" RunEachTargetSeparately="True"/>
</Target>
<Target Name="TestPortable">
<CallTarget Targets="_TestPortableDesktop" RunEachTargetSeparately="True"/>
</Target>
<Target Name="_TestEntityFramework" DependsOnTargets="ResultsDir">
<NUnit Assemblies="src\core\BrightstarDB.EntityFramework.Tests\bin\Debug\BrightstarDB.EntityFramework.Tests.dll"
ToolPath="$(NUnitPath)"
OutputXmlFile="TestResults\BrightstarDB.EntityFramework.Tests.xml" />
</Target>
<Target Name="_TestInternal" DependsOnTargets="ResultsDir">
<NUnit Assemblies="src\core\BrightstarDB.InternalTests\bin\Debug\BrightstarDB.InternalTests.dll"
ToolPath="$(NUnitPath)"
OutputXmlFile="TestResults\BrightstarDB.InternalTests.xml" />
</Target>
<Target Name="_TestOData" DependsOnTargets="ResultsDir">
<NUnit Assemblies="src\core\BrightstarDB.OData.Tests\bin\Debug\BrightstarDB.OData.Tests.dll"
ToolPath="$(NUnitPath)"
OutputXmlFile="TestResults\BrightstarDB.OData.Tests.xml" />
</Target>
<Target Name="_TestCore" DependsOnTargets="ResultsDir">
<NUnit Assemblies="src\core\BrightstarDB.Tests\bin\Debug\BrightstarDB.Tests.dll"
ToolPath="$(NUnitPath)"
OutputXmlFile="TestResults\BrightstarDB.Tests.xml" />
</Target>
<Target Name="_TestPortableDesktop" DependsOnTargets="ResultsDir">
<NUnit Assemblies="src\portable\Test\BrightstarDB.Portable.Desktop.Tests\bin\Debug\BrightstarDB.Portable.Desktop.Tests.dll"
ToolPath="$(NUnitPath)"
OutputXmlFile="TestResults\BrightstarDB.Portable.Desktop.Tests.xml" />
</Target>
</Project>