mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 17:53:58 +08:00
Publish test and code coverage artifacts for daily builds (#8955)
This commit is contained in:
parent
81d37fcb84
commit
76e8091513
@ -26,5 +26,6 @@ jobs:
|
||||
|
||||
- powershell: |
|
||||
Import-Module .\tools\ci.psm1
|
||||
Invoke-CIAfterTest
|
||||
Invoke-CIFinish -NuGetKey $(NUGET_KEY)
|
||||
displayName: Build and Test Package
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user