Publish test and code coverage artifacts for daily builds (#8955)

This commit is contained in:
Aditya Patwardhan 2019-02-25 13:03:06 -08:00 committed by GitHub
parent 81d37fcb84
commit 76e8091513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -26,5 +26,6 @@ jobs:
- powershell: |
Import-Module .\tools\ci.psm1
Invoke-CIAfterTest
Invoke-CIFinish -NuGetKey $(NUGET_KEY)
displayName: Build and Test Package

View File

@ -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'