Skip to content

Commit d8c55f4

Browse files
author
Gary Ewan Park
committed
(GH-33) Corrected the execution of OpenCover
- Needed to add some ` to the script in order for it to understand the parameters that were being passed into the command - Also noted that some Chocolatey commands still needed the -y in order to work correctly without user interaction.
1 parent eb2835a commit d8c55f4

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

BuildScripts/default.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ Task -Name __InstallChocolatey -Description $private -Action {
261261
}
262262

263263
exec {
264-
Invoke-Expression "$script:chocolateyCommand upgrade chocolatey";
264+
Invoke-Expression "$script:chocolateyCommand upgrade chocolatey -y";
265265
}
266266

267267
Write-Output "Latest Chocolatey installed."
@@ -315,7 +315,7 @@ Task -Name __UpdateReSharperCommandLineTools -Description $private -Action {
315315
Write-Output "Running Upgrade Command Line Tools..."
316316

317317
exec {
318-
Invoke-Expression "$script:chocolateyCommand upgrade resharper-clt";
318+
Invoke-Expression "$script:chocolateyCommand upgrade resharper-clt -y";
319319
}
320320

321321
Write-Output ("************ Upgrade Command Line Tools Successful ************")
@@ -376,7 +376,7 @@ Task -Name __UpdateGitVersion -Description $private -Action {
376376
Write-Output "Running Upgrade GitVersion.Portable..."
377377

378378
exec {
379-
Invoke-Expression "$script:chocolateyCommand upgrade GitVersion.Portable";
379+
Invoke-Expression "$script:chocolateyCommand upgrade GitVersion.Portable -y";
380380
}
381381

382382
Write-Output ("************ Upgrade GitVersion.Portable Successful ************")
@@ -574,7 +574,7 @@ Task -Name RunCodeCoverage -Description "Use OpenCover, NUnit and Coveralls to a
574574

575575
exec {
576576
Write-Output "Running OpenCover...";
577-
& $openCoverExe -target:$nunitConsoleExe -targetargs:"$buildArtifactsDirectory\GitHubReleaseManager.Tests.dll /noshadow /nologo" -filter:"+[GitHubReleaseManager]GitHubReleaseManager*" -excludebyattribute:"System.CodeDom.Compiler.GeneratedCodeAttribute" -register:user -output:"$buildArtifactsDirectory\coverage.xml";
577+
& $openCoverExe -target:$nunitConsoleExe -targetargs:`"$buildArtifactsDirectory\GitHubReleaseManager.Tests.dll /noshadow /nologo`" -filter:`"+[GitHubReleaseManager]GitHubReleaseManager*`" -excludebyattribute:`"System.CodeDom.Compiler.GeneratedCodeAttribute`" -register:user -output:`"$buildArtifactsDirectory\coverage.xml`";
578578
Write-Output "OpenCover Complete";
579579

580580
Write-Output "Running ReportGenerator...";

test.bat

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)