mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Publish test and code coverage artifacts for daily builds (#8955)
This commit is contained in:
@@ -26,5 +26,6 @@ jobs:
|
||||
|
||||
- powershell: |
|
||||
Import-Module .\tools\ci.psm1
|
||||
Invoke-CIAfterTest
|
||||
Invoke-CIFinish -NuGetKey $(NUGET_KEY)
|
||||
displayName: Build and Test Package
|
||||
|
||||
+3
-4
@@ -440,10 +440,9 @@ function Invoke-CIAfterTest
|
||||
|
||||
if (Test-DailyBuild)
|
||||
{
|
||||
## Publish code coverage build, tests and OpenCover module to artifacts, so webhook has the information.
|
||||
Push-Artifact -Path $_ -Name 'CodeCoverage'
|
||||
Push-Artifact $testPackageFullName -Name 'artifacts'
|
||||
$codeCoverageOutput = Split-Path -Parent (Get-PSOutput -Options (New-PSOptions -Configuration CodeCoverage))
|
||||
Start-PSBuild -Configuration 'CodeCoverage' -Clean
|
||||
|
||||
$codeCoverageOutput = Split-Path -Parent (Get-PSOutput)
|
||||
$codeCoverageArtifacts = Compress-CoverageArtifacts -CodeCoverageOutput $codeCoverageOutput
|
||||
|
||||
Write-Host -ForegroundColor Green 'Upload CodeCoverage artifacts'
|
||||
|
||||
Reference in New Issue
Block a user