Skip to content

Commit e3d2787

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

File tree

5 files changed

+114
-197
lines changed

5 files changed

+114
-197
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 & 7 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:
@@ -85,12 +89,11 @@ extends:
8589
inputs:
8690
packageType: runtime
8791
version: 6.x
88-
- task: PowerShell@2
89-
displayName: Install PSResources
90-
inputs:
91-
pwsh: true
92-
filePath: tools/installPSResources.ps1
93-
- pwsh: Invoke-Build TestFull -Configuration $(BuildConfiguration)
92+
- pwsh: |
93+
Register-PSRepository -Name CFS -SourceLocation "https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v2" -InstallationPolicy Trusted
94+
Install-Module -Repository CFS -Name InvokeBuild -RequiredVersion 5.11.3
95+
Install-Module -Repository CFS -Name platyPS -AllowPrerelease -RequiredVersion 2.0.0-preview1
96+
Invoke-Build TestFull -Configuration $(BuildConfiguration) -PSRepository CFS
9497
displayName: Build and test
9598
- task: PublishTestResults@2
9699
displayName: Publish test results

0 commit comments

Comments
 (0)