This repository has been archived by the owner on Dec 14, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Build.proj
54 lines (41 loc) · 2.12 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
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Import Project="..\..\3rdparty\msbuild\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" />
<PropertyGroup>
<ReportsFolder>.\Build\Reports\</ReportsFolder>
<ReleasesFolder>.\Build\Release\</ReleasesFolder>
<NUnitPath>..\..\3rdparty\nunit\bin\net-2.0</NUnitPath>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
</PropertyGroup>
<Target Name="Build">
<Message Text="Building S3 Publisher $(Configuration)" />
<MSBuild Projects="Snowcode.S3BuildPublisher.sln" Properties="Configuration=$(Configuration)" />
</Target>
<!-- Run Unit Tests -->
<Target Name="UnitTest">
<Message Text="Unit Tests..." />
<RemoveDir Directories="$(ReportsFolder)UnitTests" />
<MakeDir Directories="$(ReportsFolder)UnitTests" />
<CreateItem Include=".\**\bin\Debug\*.Test.dll" >
<Output TaskParameter="Include" ItemName="UnitTestDlls"/>
</CreateItem>
<Message Text="Unit Test Assemblies: %(UnitTestDlls.FileName)" />
<NUnit Assemblies="%(UnitTestDlls.FullPath)"
ToolPath="$(NUnitPath)"
ExcludeCategory="IntegrationTest,IntegrationTests"
OutputXmlFile="$(ReportsFolder)UnitTests\%(UnitTestDlls.FileName).xml"/>
</Target>
<!-- Run Integration Tests -->
<Target Name="IntegrationTest">
<Message Text="Integration Tests..." />
<RemoveDir Directories="$(ReportsFolder)IntegrationTests" />
<MakeDir Directories="$(ReportsFolder)IntegrationTests" />
<CreateItem Include=".\**\bin\Debug\*.IntegrationTests.dll" >
<Output TaskParameter="Include" ItemName="IntegrationTestDlls"/>
</CreateItem>
<Message Text="Integration Test Assemblies: %(IntegrationTestDlls.FileName)" />
<NUnit Assemblies="%(IntegrationTestDlls.FullPath)"
ToolPath="$(NUnitPath)"
OutputXmlFile="$(ReportsFolder)IntegrationTests\%(IntegrationTestDlls.FileName).xml" />
</Target>
<!-- Once build and tested use the Publish.proj file to publish the files to AWS S3 -->
</Project>