File tree 2 files changed +11
-4
lines changed 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -365,10 +365,14 @@ function test {
365
365
}
366
366
if (${CodeCovToken} )
367
367
{
368
- # TODO: https://github.com/PoshCode/PSGit/blob/dev/test/Send-CodeCov.ps1
369
- Trace-Message " Sending CI Code-Coverage Results" - Verbose:(! $Quiet )
370
- $response = & " $TestPath \Send-CodeCov" - CodeCoverage $TestResults.CodeCoverage - RepositoryRoot $Path - OutputPath $OutputPath - Token ${CodeCovToken}
371
- Trace-Message $response.message - Verbose:(! $Quiet )
368
+ try {
369
+ # TODO: https://github.com/PoshCode/PSGit/blob/dev/test/Send-CodeCov.ps1
370
+ Trace-Message " Sending CI Code-Coverage Results" - Verbose:(! $Quiet )
371
+ $response = & " $TestPath \Send-CodeCov" - CodeCoverage $TestResults.CodeCoverage - RepositoryRoot $Path - OutputPath $OutputPath - Token ${CodeCovToken}
372
+ Trace-Message $response.message - Verbose:(! $Quiet )
373
+ } catch {
374
+ Write-Warning " Error sending code-coverage data to CodeCov $ ( $response ) "
375
+ }
372
376
}
373
377
}
374
378
Original file line number Diff line number Diff line change 5
5
Install-Package Configuration -Provider PowerShellGet -Minimum 1.0 -Force -ForceBootstrap
6
6
Install-Package Pester -Provider PowerShellGet -Minimum 4.1 -Force -SkipPublisherCheck
7
7
Install-Package Pansies -Provider PowerShellGet -Force -AllowClobber
8
+ environment :
9
+ CODECOV_TOKEN :
10
+ secure : sCb/Zv0ZKIdJGJyMyD3DXlGzChdDnyZkbnfYNbXLwD86CuApmDKUM4JahzQ+NOt9
8
11
install :
9
12
- ps : |
10
13
nuget install libgit2sharp -OutputDirectory .\packages -ExcludeVersion
You can’t perform that action at this time.
0 commit comments