Skip to content

Commit

Permalink
Remove old code, see #13
Browse files Browse the repository at this point in the history
  • Loading branch information
cd21h committed Nov 1, 2017
1 parent e590c76 commit 6c7c3a4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 244 deletions.
1 change: 0 additions & 1 deletion Properties/Global.Imports
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<Import Project="$(PropertiesPath)\CPUArchitecture.properties" />

<!-- Import Custom MSBuild Tasks -->
<Import Project="$(TasksPath)\Microsoft.Sdc.Common.tasks" />
<Import Project="$(TasksPath)\MSBuild.Community.Tasks.Targets" />
<Import Project="$(TasksPath)\MSBuild.Extended.tasks" />

Expand Down
4 changes: 2 additions & 2 deletions Targets/CleanSolution.target
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<Target Name="CleanSolution">

<Message Text="Cleaning up temp files prior to build" Importance="High"/>
<MakeDir Directories="$(DropsPath)\$(SemanticVersion)\"/>
<RemoveDir Directories="@(ProjectBuildArtefactFolders)" />

<CleanFolder Path="$(DropsPath)" Force="True" ContinueOnError="true" />
<RemoveDir Directories="$(DropsPath)" ContinueOnError="true" />
<MakeDir Directories="$(DropsPath)\$(SemanticVersion)\"/>

</Target>

Expand Down
18 changes: 5 additions & 13 deletions Targets/RunNUnitTests.target
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<Target Name="RunNUnit3Tests" Condition=" '$(UseNUnit3)' == 'true' ">
<Error
Text="nunit-console shim not found. Install Chocolatey package nunit.portable first."
Text="nunit-console shim not found. Install Chocolatey package nunit-console.portable first."
Condition="!Exists('$(ShimsPath)\nunit3-console.exe')"
/>
<Error
Expand All @@ -37,10 +37,10 @@
<Message Condition=" '$(IsDesktopBuild)' != 'true' "
Text="Skipping HTML report generation non-desktop build." />
<Error
Text="Report Generator was not found. Install Chocolatey package reportgenerator.portable"
Condition="'$(IsDesktopBuild)' != 'true' "
Text="ReportGenerator shim not found. Install Chocoletey package reportgenerator.portable"
Condition=" ('$(IsDesktopBuild)' == 'true') And (!Exists('$(ShimsPath)\ReportGenerator.exe'))"
/>
<Exec Condition=" ('$(IsDesktopBuild)' == 'true') And (!Exists('$(ShimsPath)\ReportGenerator.exe')) "
<Exec Condition=" '$(IsDesktopBuild)' == 'true' "
Command="$(ShimsPath)\ReportGenerator.exe -reports:$(NUnitResultsPath)\TestCoverage.xml -reporttypes:Html -targetdir:$(NUnitResultsPath)\CoverageReport"
/>
<MSBuild.Community.Tasks.WebUpload Condition=" '$(APPVEYOR_JOB_ID)' != '' "
Expand All @@ -57,16 +57,8 @@
/>
</Target>

<Target Name="RunNUnit2Tests" Condition=" '$(UseNUnit3)' != 'true' ">
<NUnit Assemblies="@(AssembliesToTestWithNUnit)"
ToolPath="$(ToolsPath)\NUnit.Runners.2.6.4\"
OutputXmlFile="$(NUnitResultsPath)\NUnitOutput.xml" />

<Message Text="##teamcity[importData type='nunit' path='$(NUnitResultsPath)\NUnitOutput.xml']" />
</Target>

<Target Name="RunNUnitTests"
DependsOnTargets="CreateDrops;CreateNUnitResultsDir;RunNUnit2Tests;RunNUnit3Tests">
DependsOnTargets="CreateDrops;CreateNUnitResultsDir;RunNUnit3Tests">
</Target>

</Project>
Loading

0 comments on commit 6c7c3a4

Please sign in to comment.