-
Notifications
You must be signed in to change notification settings - Fork 9
/
Concordion.msbuild
149 lines (127 loc) · 6.06 KB
/
Concordion.msbuild
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="tools\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
<UsingTask AssemblyFile="tools\Gallio-3.2.517.0\bin\Gallio.MSBuildTasks.dll" TaskName="Gallio" />
<PropertyGroup>
<Major>0</Major>
<Minor>2</Minor>
<Build>1</Build>
<Revision>9999</Revision>
</PropertyGroup>
<ItemGroup>
<DefaultExclude Include="**\.svn\**" />
<DefaultExclude Include="**\Test\**" />
<DefaultExclude Include="**\TestResults\**" />
<DefaultExclude Include="tools\**" />
<DefaultExclude Include="Results\**" />
<DefaultExclude Include="Reports\**" />
<DefaultExclude Include="**\doc\**" />
<DefaultExclude Include="**\www\**" />
<DefaultExclude Include="**\*.user" />
<DefaultExclude Include="**\*.suo" />
<DefaultExclude Include="**\*.zip" />
<DefaultExclude Include="**\*.txt" />
</ItemGroup>
<Target Name="Version">
<PropertyGroup>
<Version>$(build_number)</Version>
</PropertyGroup>
<Message Text="Version: $(Version)"/>
<AssemblyInfo CodeLanguage="CS"
OutputFile="Concordion\Properties\AssemblyInfo.cs"
AssemblyTitle="Concordion.NET"
AssemblyDescription="Concordion Acceptance Testing Framework"
AssemblyCompany="http://code.google.com/p/concordion-net/"
AssemblyProduct="Concordion"
AssemblyCopyright="Copyright © Jeffrey Cameron 2009"
ComVisible="false"
CLSCompliant="true"
Guid="923eb1d8-0d6a-4a05-896c-16f127f2944f"
AssemblyVersion="$(Version)"
AssemblyFileVersion="$(Version)"
Condition="$(Revision) != '0' "/>
</Target>
<Target Name="Compile" DependsOnTargets="Version">
<MSBuild Projects="Concordion.sln"
Properties="Configuration=Release" />
</Target>
<PropertyGroup>
<StagingDirectory>staging</StagingDirectory>
<StagingDirectory>staging\Concordion</StagingDirectory>
<StagingDirectory>staging\Specifications</StagingDirectory>
<StagingDirectory>staging\Tests</StagingDirectory>
<StagingDirectory>staging\Gallio-Concordion-Adapter</StagingDirectory>
<DeploymentDirectory>deploy</DeploymentDirectory>
</PropertyGroup>
<Target Name="PreStaging" DependsOnTargets="Compile">
<MakeDir Directories="$(StagingDirectory)"/>
<MakeDir Directories="$(DeploymentDirectory)"/>
</Target>
<ItemGroup>
<ConcordionFiles Include="Concordion\bin\Release\Concordion.dll" />
<ConcordionFiles Include="Concordion\bin\Release\Concordion.pdb" />
<!--<ConcordionFiles Include="Concordion\bin\Release\Concordion.xml" />-->
<ConcordionFiles Include="Concordion\bin\Release\Concordion.config" />
<ConcordionFiles Include="Concordion\bin\Release\OGNL.dll" />
</ItemGroup>
<ItemGroup>
<ConcordionSpecFiles Include="Concordion.Spec\bin\Release\Concordion.Spec.dll" />
<ConcordionSpecFiles Include="Concordion.Spec\bin\Release\Concordion.Spec.pdb" />
<ConcordionSpecFiles Include="Concordion.Spec\bin\Release\Concordion.Spec.config" />
</ItemGroup>
<ItemGroup>
<SpecificationHtmlFiles Include="Specifications\**\*.*" Exclude="@(DefaultExclude)"/>
</ItemGroup>
<ItemGroup>
<ConcordionTestFiles Include="Concordion.Test\bin\Release\Concordion.Test.dll" />
<ConcordionTestFiles Include="Concordion.Test\bin\Release\Concordion.Test.pdb" />
<ConcordionTestFiles Include="Concordion.Test\bin\Release\Moq.dll" />
<ConcordionTestFiles Include="Concordion.Test\bin\Release\xunit.dll" />
</ItemGroup>
<ItemGroup>
<ConcordionGallioFiles Include="Gallio.ConcordionAdapter\bin\Release\Gallio.ConcordionAdapter.dll" />
<ConcordionGallioFiles Include="Gallio.ConcordionAdapter\bin\Release\Gallio.ConcordionAdapter.xml" />
<ConcordionGallioFiles Include="Gallio.ConcordionAdapter\bin\Release\Gallio.ConcordionAdapter.pdb" />
<ConcordionGallioFiles Include="Gallio.ConcordionAdapter\Gallio.ConcordionAdaptor.plugin" />
</ItemGroup>
<ItemGroup>
<ConcordionLicenseFiles Include="Concordion.License.txt" />
</ItemGroup>
<ItemGroup>
<BatchFiles Include="run-spec-with-echo.cmd" />
<BatchFiles Include="run-unit-test-with-echo.cmd" />
</ItemGroup>
<Target Name="Staging" DependsOnTargets="PreStaging">
<Copy SourceFiles="@(ConcordionLicenseFiles)" DestinationFolder="staging" />
<Copy SourceFiles="@(BatchFiles)" DestinationFolder="staging" />
<Copy SourceFiles="@(ConcordionFiles)" DestinationFolder="staging\Concordion" />
<Copy SourceFiles="@(ConcordionSpecFiles)" DestinationFolder="staging\Specifications" />
<Copy SourceFiles="@(SpecificationHtmlFiles)" DestinationFiles="@(SpecificationHtmlFiles->'staging\Specifications\%(RecursiveDir)%(Filename)%(Extension)')" />
<Copy SourceFiles="@(ConcordionTestFiles)" DestinationFolder="staging\Test" />
<Copy SourceFiles="@(ConcordionGallioFiles)" DestinationFolder="staging\Gallio-Concordion-Adapter" />
<Copy SourceFiles="@(ConcordionFiles)" DestinationFolder="staging\Gallio-Concordion-Adapter" />
</Target>
<ItemGroup>
<TestAssemblies Include="Concordion.Spec\bin\Release\Concordion.Spec.dll" />
<Plugins Include="Gallio.ConcordionAdapter\bin\Release" />
</ItemGroup>
<Target Name="Test-Specs" DependsOnTargets="Staging">
<Gallio Files="@(TestAssemblies)"
PluginDirectories="@(Plugins)"
ReportDirectory="Reports"
WorkingDirectory="."
ReportTypes="XHtml"
ShowReports="false"
IgnoreFailures="true"
RunnerType="Local" />
</Target>
<Target Name="Package" DependsOnTargets="Test-Specs">
<ItemGroup>
<ZipFiles Include="staging\**\*.*" />
</ItemGroup>
<Zip Files="@(ZipFiles)" ZipFileName="deploy\Concordion-$(Version).zip" WorkingDirectory="staging" />
</Target>
<Target Name="Build" DependsOnTargets="Package">
<Message Text="Concordion Build Complete"/>
</Target>
</Project>