forked from NDbUnit/NDbUnit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NDbUnit.build.xml
38 lines (29 loc) · 1.49 KB
/
NDbUnit.build.xml
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
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Application Configurations -->
<PropertyGroup>
<SolutionFileName>NDbUnit.sln</SolutionFileName>
<NUnit-ToolPath>packages\NUnit.Runners.2.6.4\tools</NUnit-ToolPath>
<Test-Assemblies-List>build\Debug\NDbUnit.Test.dll</Test-Assemblies-List>
</PropertyGroup>
<ItemGroup>
<AllProjects Include="**\*.csproj" />
</ItemGroup>
<Target Name="Clean">
<MSBuild Projects="@(AllProjects)" Targets="Clean" />
</Target>
<Target Name="Compile">
<MSBuild Projects="@(AllProjects)" Targets="Build" Properties="WarningLevel=1" />
</Target>
<!-- have to force x86 verssion of the test-runner b/c the ORA instant-client assemblies in the repo are the x86 (rather than x64) binaries -->
<Target Name="Test" DependsOnTargets="BuildSolution">
<Exec Command=""$(NUnit-ToolPath)\nunit-console-x86.exe" "$(Test-Assemblies-List)" $(NUNIT_RUNNER_OPTIONS) /noshadow /result=TestResult.xml" IgnoreExitCode="true" />
</Target>
<!-- Have to set ContinueOnError="true" b/c Doxygen will return an error is the LaTex infrastructure isn't present -->
<Target Name="ApiReferenceDocs">
<Exec ContinueOnError="true" Command="tools\doxygen\doxygen.exe src\NDbUnit.doxygen " />
</Target>
<Target Name="Build" DependsOnTargets="Test;ApiReferenceDocs" />
<Target Name="BuildSolution">
<MSBuild Projects="$(SolutionFileName)" />
</Target>
</Project>