-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathProteus.Utility.build.xml
More file actions
38 lines (29 loc) · 1.49 KB
/
Proteus.Utility.build.xml
File metadata and controls
38 lines (29 loc) · 1.49 KB
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>Proteus.Utility.sln</SolutionFileName>
<NUnit-ToolPath>packages\NUnit.Runners.2.6.4\tools</NUnit-ToolPath>
<Test-Assemblies-List>build\Debug\Proteus.Utility.UnitTest.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>
<Target Name="Test" DependsOnTargets="Clean;Compile">
<Exec ContinueOnError="true" Command=""$(NUnit-ToolPath)\nunit-console.exe" "$(Test-Assemblies-List)" /noshadow /work=build\Debug" />
</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\proteus.utility.doxygen " />
</Target>
<!-- default 'Build' target doesn't need to invoke Test target b/c CI server will auto-discover test assemblies on run -->
<Target Name="Build" DependsOnTargets="BuildSolution;ApiReferenceDocs" />
<Target Name="BuildSolution">
<MSBuild Projects="$(SolutionFileName)" />
</Target>
</Project>