Skip to content

Commit 39b8ae5

Browse files
authored
Directly install opencppcoverage without choco (#148)
Chocolatey is no available in all build evnironments. This change removes the use of choco as a wrapper for downloading and installing opencppcoverage.
1 parent cbfc758 commit 39b8ae5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Steps/InstallCoverageTools.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
steps:
99

1010
- powershell: |
11-
choco install opencppcoverage
11+
Invoke-WebRequest -Uri https://github.com/OpenCppCoverage/OpenCppCoverage/releases/download/release-0.9.9.0/OpenCppCoverageSetup-x64-0.9.9.0.exe -OutFile $(Agent.TempDirectory)\OpenCppCoverageInstall.exe
12+
start-process -FilePath "$(Agent.TempDirectory)\OpenCppCoverageInstall.exe" -ArgumentList "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-" -NoNewWindow -Wait
1213
Write-Host "##vso[task.prependpath]C:\Program Files\OpenCppCoverage"
1314
displayName: Install Windows Code Coverage Tools
1415
condition: eq( variables['Agent.OS'], 'Windows_NT' )

0 commit comments

Comments
 (0)