Skip to content

Commit

Permalink
Add Documentation target to make.ps1 and build.targets
Browse files Browse the repository at this point in the history
Former-commit-id: bb1f1cb
  • Loading branch information
lukebakken committed Feb 25, 2015
1 parent b54e4b9 commit 08412c6
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -13,6 +13,7 @@ RELEASE
packages/
Help
Doc
src/RiakClient/docs/

*.orig
*.ncb
Expand Down
13 changes: 13 additions & 0 deletions build/build.targets
Expand Up @@ -165,6 +165,19 @@
</PropertyGroup>
</Target>

<Target Name="Documentation" DependsOnTargets="Release">
<Error Condition="'$(OS)' != 'Windows_NT'" Text="Documentation can only be built on Windows via Sandcasle!" />
<Error Condition="'$(SHFBROOT)' == ''" Text="Ensure Sandcastle is installed and that the SHFBROOT environment variable is set!" />
<PropertyGroup>
<SandcastleProjFile>$(ProjDir)\RiakClient.shfbproj</SandcastleProjFile>
<SandcastleDocSourcePath>$(RiakClientProjDir)\bin\Release</SandcastleDocSourcePath>
<SandcastleDocOutputPath>$(RiakClientProjDir)\docs</SandcastleDocOutputPath>
</PropertyGroup>
<MSBuild Projects="$(SandcastleProjFile)"
Targets="Clean;Rebuild"
Properties="Configuration=Release;DocumentationSourcePath=$(SandcastleDocSourcePath);OutputPath=$(SandcastleDocOutputPath)" />
</Target>

<Target Name="IntegrationTest" DependsOnTargets="SetupTests;Debug">
<Exec WorkingDirectory="$(SolutionDir)"
Command="$(NUnitConsoleRunnerCommand) -work=$(ProjDir)\RiakClientTests.Live $(ProjDir)\RiakClientTests.Live\RiakClientTests.Live.nunit" />
Expand Down
5 changes: 3 additions & 2 deletions build/properties.xml
Expand Up @@ -13,6 +13,7 @@

<SolutionFile>$(SolutionDir)RiakClient.sln</SolutionFile>
<ProjDir>$(SolutionDir)src</ProjDir>
<RiakClientProjDir>$(ProjDir)\RiakClient</RiakClientProjDir>

<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>

Expand All @@ -22,15 +23,15 @@

<ProtoGenExe>$(SolutionDir)tools\protobuf-net\protogen\protogen.exe</ProtoGenExe>
<ProtoDir>$(SolutionDir)src\riak_pb\src</ProtoDir>
<ProtoMsgDir>$(SolutionDir)src\RiakClient\Messages</ProtoMsgDir>
<ProtoMsgDir>$(RiakClientProjDir)\Messages</ProtoMsgDir>
<ProtoMsgCsvFile>$(ProtoDir)\riak_pb_messages.csv</ProtoMsgCsvFile>
<NuGetExe>$(SolutionDir).nuget\NuGet.exe</NuGetExe>
<NuGetPackagesConfig>$(SolutionDir).nuget\packages.config</NuGetPackagesConfig>
<NuGetDir>$(ProjDir)\NuGet</NuGetDir>
<NuGetSpecTemplate>$(NuGetDir)\RiakClient.nuspec.template</NuGetSpecTemplate>
<NuGetSpecFile>$(NuGetDir)\RiakClient.nuspec</NuGetSpecFile>

<RiakClientPackagesConfig>$(ProjDir)\RiakClient\packages.config</RiakClientPackagesConfig>
<RiakClientPackagesConfig>$(RiakClientProjDir)\packages.config</RiakClientPackagesConfig>

<PowerShellExe Condition="'$(PowerShellExe)'== ''">$(WINDIR)\System32\WindowsPowerShell\v1.0\powershell.exe</PowerShellExe>

Expand Down
3 changes: 2 additions & 1 deletion make.ps1
Expand Up @@ -28,7 +28,8 @@
Param(
[Parameter(Mandatory=$False, Position=0)]
[ValidateSet('Debug','Release', 'All', 'Publish', 'Clean', 'CleanAll',
'Test','TestAll','UnitTest','IntegrationTest','DeprecatedTest','CodeAnalysis',
'Test','TestAll','UnitTest','IntegrationTest','DeprecatedTest',
'CodeAnalysis','Documentation',
IgnoreCase = $True)]
[string]$Target = 'Debug',
[Parameter(Mandatory=$False)]
Expand Down
4 changes: 2 additions & 2 deletions src/RiakClient.shfbproj
Expand Up @@ -35,8 +35,8 @@
<HelpTitle>Riak .NET Client Documentation</HelpTitle>
<ContentPlacement>AboveNamespaces</ContentPlacement>
<DocumentationSources>
<DocumentationSource sourceFile="RiakClient\bin\Debug\RiakClient.dll" />
<DocumentationSource sourceFile="RiakClient\bin\Debug\RiakClient.XML" />
<DocumentationSource sourceFile="RiakClient\bin\Release\RiakClient.dll" />
<DocumentationSource sourceFile="RiakClient\bin\Release\RiakClient.XML" />
</DocumentationSources>
<CopyrightText>Copyright %28c%29 2014 - Basho Technologies, Inc.</CopyrightText>
<NamespaceSummaries>
Expand Down

0 comments on commit 08412c6

Please sign in to comment.