Skip to content

Commit 9fd2c44

Browse files
committed
Update build infra to support Azure Artifacts Feed for PowerShell modules
And a bunch of clean-ups.
1 parent 41fce39 commit 9fd2c44

File tree

5 files changed

+116
-190
lines changed

5 files changed

+116
-190
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ bin/
22
obj/
33
module/PowerShellEditorServices/NOTICE.txt
44
module/PowerShellEditorServices/Commands/en-US/
5-
module/Plaster/
65
module/PSReadLine/
76
module/PSScriptAnalyzer/
87
TestResults/

.pipelines/PowerShellEditorServices-Official.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ parameters:
2727
variables:
2828
system.debug: ${{ parameters.debug }}
2929
BuildConfiguration: Release
30-
WindowsContainerImage: onebranch.azurecr.io/windows/ltsc2019/vse2022:latest
30+
WindowsContainerImage: onebranch.azurecr.io/windows/ltsc2022/vse2022:latest
3131
DOTNET_NOLOGO: true
3232
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
3333

@@ -46,6 +46,10 @@ extends:
4646
asyncSdl:
4747
enabled: true
4848
forStages: [build]
49+
featureFlags:
50+
WindowsHostVersion:
51+
Version: 2022
52+
Network: Netlock
4953
stages:
5054
- stage: build
5155
jobs:
@@ -90,7 +94,11 @@ extends:
9094
inputs:
9195
pwsh: true
9296
filePath: tools/installPSResources.ps1
93-
- pwsh: Invoke-Build TestFull -Configuration $(BuildConfiguration)
97+
- pwsh: |
98+
Register-PSRepository -Name CFS -SourceLocation "https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v2" -InstallationPolicy Trusted
99+
Install-Module -Repository CFS -Name InvokeBuild -RequiredVersion 5.11.3
100+
Install-Module -Repository CFS -Name platyPS -AllowPrerelease -RequiredVersion 2.0.0-preview1
101+
Invoke-Build TestFull -Configuration $(BuildConfiguration) -PSRepository CFS
94102
displayName: Build and test
95103
- task: PublishTestResults@2
96104
displayName: Publish test results

0 commit comments

Comments
 (0)