mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 17:53:58 +08:00
3ffd998c58
Refactor the `ci.psm1` to publish the code coverage and test packages. Allow `CodeCoverage` configuration on non-windows. ## PR Context We plan to run code coverage on Windows, Linux and macOS. These changes are needed to unblock those runs.
35 lines
914 B
YAML
35 lines
914 B
YAML
parameters:
|
|
pool: 'Hosted VS2017'
|
|
jobName: 'win_packaging'
|
|
parentJobs: []
|
|
|
|
jobs:
|
|
- job: ${{ parameters.jobName }}
|
|
dependsOn:
|
|
${{ parameters.parentJobs }}
|
|
pool:
|
|
name: ${{ parameters.pool }}
|
|
|
|
displayName: Windows Packaging
|
|
|
|
steps:
|
|
- powershell: |
|
|
Get-ChildItem -Path env:
|
|
displayName: Capture environment
|
|
condition: succeededOrFailed()
|
|
|
|
- template: /tools/releaseBuild/azureDevOps/templates/insert-nuget-config-azfeed.yml
|
|
|
|
- powershell: |
|
|
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
|
|
Import-Module .\tools\ci.psm1
|
|
Invoke-CIInstall
|
|
displayName: Bootstrap
|
|
condition: succeededOrFailed()
|
|
|
|
- powershell: |
|
|
Import-Module .\tools\ci.psm1
|
|
New-CodeCoverageAndTestPackage
|
|
Invoke-CIFinish -NuGetKey $(NUGET_KEY)
|
|
displayName: Build and Test Package
|