-
Notifications
You must be signed in to change notification settings - Fork 2
/
Build.xml
116 lines (102 loc) · 5.09 KB
/
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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<PropertyGroup>
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\tools\MSBuild.Community\</MSBuildCommunityTasksPath>
<SourceDir>$(MSBuildProjectDirectory)\src\</SourceDir>
<NUnitToolPath>$(MSBuildProjectDirectory)\tools\NUnit\</NUnitToolPath>
<TargetDir>$(MsBuildProjectDirectory)\target\</TargetDir>
<ReportDir>$(TargetDir)Report\</ReportDir>
<PerfReportDir>$(ReportDir)Perf\</PerfReportDir>
<UnitReportDir>$(ReportDir)Unit\</UnitReportDir>
<DocDir>$(TargetDir)Doc\</DocDir>
<DistDir>$(TargetDir)Dist\</DistDir>
<BinDir>$(TargetDir)Bin\</BinDir>
</PropertyGroup>
<Import Project="$(MSBuildCommunityTasksPath)MSBuild.Community.Tasks.Targets" />
<Target Name="Clean">
<RemoveDir Directories="$(TargetDir)" />
<RemoveDir Directories="$(SourceDir)EventStore.TestRunner\bin" />
<RemoveDir Directories="$(SourceDir)EventStore.TestRunner\obj" />
<RemoveDir Directories="$(SourceDir)EventStore.TestScenarios\bin" />
<RemoveDir Directories="$(SourceDir)EventStore.TestScenarios\obj" />
</Target>
<Target Name="PreBuild" >
<MakeDir Directories="$(TargetDir)" />
<MakeDir Directories="$(ReportDir)" />
<MakeDir Directories="$(DocDir)" />
<MakeDir Directories="$(DistDir)" />
<MakeDir Directories="$(PerfReportDir)" />
<MakeDir Directories="$(UnitReportDir)" />
<MakeDir Directories="$(BinDir)" />
</Target>
<!-- Compiles the VS solution -->
<Target Name="Build" DependsOnTargets="PreBuild">
<MSBuild
Projects="$(SourceDir)EventStore.PerformanceTests.sln"
Properties="Configuration=Release;OutputPath=$(BinDir);Optimize=true"
StopOnFirstFailure="true"
ContinueOnError="false"
/>
</Target>
<!-- Run Unit tests (Using MSBuild.Community) -->
<Target Name="Test" DependsOnTargets="Build">
<Message Text="$(BinDir)EventStore.TestScenarios.dll" />
<NUnit
Assemblies="$(BinDir)EventStore.TestScenarios.dll"
ToolPath="$(NUnitToolPath)"
OutputXmlFile="$(UnitReportDir)UnitTests.xml"
/>
</Target>
<!-- Run performance tests (Using MSBuild.Community) -->
<!-- <Target Name="UpdateVersion">
<AssemblyInfo CodeLanguage="CS"
OutputFile="$(MsBuildProjectDirectory)\Version.cs"
AssemblyCompany="[email protected]"
AssemblyProduct="EventStore.PerformanceTests"
AssemblyCopyright="Copyright © MCollinge"
AssemblyVersion="$(DisruptorVersion)"
AssemblyFileVersion="$(DisruptorVersion)" />
</Target>
<Target Name="Package">
<ItemGroup>
<DisruptorZip Include="$(BinDir)Disruptor.dll" />
<DisruptorZip Include="$(BinDir)Disruptor.pdb" />
<DisruptorZip Include="$(BinDir)Disruptor.XML" />
</ItemGroup>
<Zip Files="@(DisruptorZip)" WorkingDirectory="$(BinDir)" ZipFileName="Target\Dist\Disruptor-binaries-$(DisruptorVersion).zip" ZipLevel="9" />
<ItemGroup>
<DisruptorPerfZip Include="$(BinDir)Disruptor.dll" />
<DisruptorPerfZip Include="$(BinDir)Disruptor.pdb" />
<DisruptorPerfZip Include="$(BinDir)Disruptor.XML" />
<DisruptorPerfZip Include="$(BinDir)Disruptor.PerfTests.exe" />
<DisruptorPerfZip Include="$(BinDir)Disruptor.PerfTests.pdb" />
<DisruptorPerfZip Include="$(BinDir)nunit.framework.dll" />
<DisruptorPerfZip Include="$(BinDir)System.Threading.Tasks.Dataflow.dll" />
</ItemGroup>
<Zip Files="@(DisruptorPerfZip)" WorkingDirectory="$(BinDir)" ZipFileName="Target\Dist\Disruptor-perfRunner-$(DisruptorVersion).zip" ZipLevel="9" />
<ItemGroup>
<DisruptorSourceZipExclude Include="$(SourceDir)\**\.svn\**" />
<DisruptorSourceZipExclude Include="$(SourceDir)\**\obj\**" />
<DisruptorSourceZipExclude Include="$(SourceDir)\_ReSharper.NDisruptor\**" />
<DisruptorSourceZipExclude Include="$(SourceDir)\Doc\**" />
<DisruptorSourceZipExclude Include="$(SourceDir)\Target\**" />
<DisruptorSourceZipExclude Include="$(SourceDir)\Tools\**" />
<DisruptorSourceZipExclude Include="$(SourceDir)\Backlog.txt" />
<DisruptorSourceZipExclude Include="$(SourceDir)\NDisruptor.5.1.ReSharper.user" />
<DisruptorSourceZipExclude Include="$(SourceDir)\NDisruptor.6.5.TeamCity.user" />
<DisruptorSourceZipExclude Include="$(SourceDir)\NDisruptor.suo" />
<DisruptorSourceZipExclude Include="$(SourceDir)\perfMonitor.bat" />
<DisruptorSourceZipInclude Include="$(SourceDir)\**\*.*" Exclude="@(DisruptorSourceZipExclude)" />
</ItemGroup>
<Zip Files="@(DisruptorSourceZipInclude)" WorkingDirectory="$(SourceDir)" ZipFileName="Target\Dist\Disruptor-source-$(DisruptorVersion).zip" ZipLevel="9" />
<ItemGroup>
<Zips Include="Target\Dist\Disruptor-binaries-$(DisruptorVersion).zip" />
<Zips Include="Target\Dist\Disruptor-perfRunner-$(DisruptorVersion).zip" />
<Zips Include="Target\Dist\Disruptor-source-$(DisruptorVersion).zip" />
</ItemGroup>
<Copy
SourceFiles="@(Zips)"
DestinationFolder="C:\Disruptor-release"
/>
</Target>-->
</Project>