Skip to content

Commit

Permalink
Document chocolatey package requirements, see #12
Browse files Browse the repository at this point in the history
  • Loading branch information
cd21h committed Feb 5, 2017
1 parent 3c7cbac commit 312bed3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
11 changes: 10 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,13 @@ Common build system for the Sharp Architecture project.

SA repositories reference the build project as a Git submodule. Custom scripts are written that reference and invoke the main builld system, hooking into the extensibility points to build and package the correct project/files.

For an example on how to use this build, please refer to the readme in SampleBuild directory.
For an example on how to use this build, please refer to the readme in SampleBuild directory.

Build system requires following chocolatey packages to be installed before build

* nuget.commandline
* resharper-clt.portable
* nunit.portable
* opencover.portable
* reportgenerator.portable

2 changes: 1 addition & 1 deletion Targets/BuildSolutions.target
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<Target Name="RestorePackages">
<Error
Text="nuget.exe shim not found. Install ChocolateyPackage nuget.commandline"
Text="nuget.exe shim was not found. Install ChocolateyPackage nuget.commandline"
Condition="!Exists('$(ShimsPath)\nuget.exe')"
/>

Expand Down
11 changes: 9 additions & 2 deletions Targets/RunNUnitTests.target
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
Text="nunit-console shim not found. Install Chocolatey package nunit.portable first."
Condition="!Exists('$(ShimsPath)\nunit3-console.exe')"
/>
<Error
Text="OpenConver profiler was not found. Install Chocolatey package opencover.portable"
Condition="!Exists('$(OpenCoverMSBuildTasksPath)\OpenCover.targets')"
/>
<PropertyGroup>
<TeamCityOutput Condition=" '$(IsDesktopBuild)' != 'true' ">--teamcity</TeamCityOutput>
<NUnit3Where Condition=" '$(NUnit3TestsFilter)' != '' ">--where $(NUnit3TestsFilter)</NUnit3Where>
Expand All @@ -32,10 +36,13 @@
<!-- reportgenerator.portable -->
<Message Condition=" '$(IsDesktopBuild)' != 'true' "
Text="Skipping HTML report generation non-desktop build." />
<Exec Condition=" '$(IsDesktopBuild)' == 'true' "
<Error
Text="Report Generator was not found. Install Chocolatey package reportgenerator.portable"
Condition="'$(IsDesktopBuild)' != 'true' "
/>
<Exec Condition=" ('$(IsDesktopBuild)' == 'true') And (!Exists('$(ShimsPath)\ReportGenerator.exe')) "
Command="$(ShimsPath)\ReportGenerator.exe -reports:$(NUnitResultsPath)\TestCoverage.xml -reporttypes:Html -targetdir:$(NUnitResultsPath)\CoverageReport"
/>

<MSBuild.Community.Tasks.WebUpload Condition=" '$(APPVEYOR_JOB_ID)' != '' "
RemoteUri="https://ci.appveyor.com/api/testresults/nunit3/$(APPVEYOR_JOB_ID)"
FileName="$(NUnitResultsPath)\NUnitOutput.xml"
Expand Down

0 comments on commit 312bed3

Please sign in to comment.