Skip to content

Commit abb468b

Browse files
committed
Extend CI test matrix to match PowerShellEditorServices
1 parent 64fc331 commit abb468b

File tree

3 files changed

+54
-18
lines changed

3 files changed

+54
-18
lines changed

.vsts-ci/azure-pipelines-ci.yml

+25-7
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,41 @@ resources:
2222
ref: master
2323

2424
jobs:
25-
- job: Win2019
26-
displayName: Windows Server 2019
25+
- job: PS51_Win2016
26+
displayName: PowerShell 5.1 - Windows Server 2016
27+
pool:
28+
vmImage: vs2017-win2016
29+
steps:
30+
- template: templates/ci-general.yml
31+
parameters:
32+
pwsh: false
33+
34+
- job: PS51_Win2019
35+
displayName: PowerShell 5.1 - Windows Server 2019
36+
pool:
37+
vmImage: windows-2019
38+
steps:
39+
- template: templates/ci-general.yml
40+
parameters:
41+
pwsh: false
42+
43+
- job: PS7_Win2019
44+
displayName: PowerShell 7 - Windows Server 2019
2745
pool:
2846
vmImage: windows-2019
2947
steps:
3048
- template: templates/ci-general.yml
3149

32-
- job: macOS
33-
displayName: macOS 10.15
50+
- job: PS7_macOS
51+
displayName: PowerShell 7 - macOS 10.15
3452
pool:
3553
vmImage: macOS-10.15
3654
steps:
3755
- template: templates/ci-general.yml
3856

39-
- job: Ubuntu
40-
displayName: Ubuntu 20.04
57+
- job: PS7_Ubuntu
58+
displayName: PowerShell 7 - Ubuntu 20.04
4159
pool:
42-
vmImage: Ubuntu-20.04
60+
vmImage: ubuntu-20.04
4361
steps:
4462
- template: templates/ci-general.yml

.vsts-ci/templates/ci-general.yml

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
parameters:
2+
- name: pwsh
3+
type: boolean
4+
default: true
25
- name: usePipelineArtifact
36
type: boolean
47
default: false
58

69
steps:
7-
- pwsh: $PSVersionTable
10+
- task: PowerShell@2
811
displayName: PowerShell version
12+
inputs:
13+
targetType: inline
14+
script: $PSVersionTable
15+
pwsh: ${{ parameters.pwsh }}
916

1017
- checkout: self
1118

@@ -34,12 +41,16 @@ steps:
3441
archiveFilePatterns: $(Pipeline.Workspace)/PowerShellEditorServices.zip
3542
destinationFolder: $(Build.SourcesDirectory)/vscode-powershell/modules
3643

37-
- pwsh: |
38-
Install-Module InvokeBuild -Scope CurrentUser -Force
39-
Invoke-Build
40-
Write-Host "##vso[task.setvariable variable=vsixPath]$(Resolve-Path powershell-*.vsix)"
44+
- task: PowerShell@2
4145
displayName: Build and test
42-
workingDirectory: $(Build.SourcesDirectory)/vscode-powershell
46+
inputs:
47+
targetType: inline
48+
script: |
49+
Install-Module InvokeBuild -Scope CurrentUser -Force
50+
Invoke-Build
51+
Write-Host "##vso[task.setvariable variable=vsixPath]$(Resolve-Path powershell-*.vsix)"
52+
workingDirectory: $(Build.SourcesDirectory)/vscode-powershell
53+
pwsh: ${{ parameters.pwsh }}
4354

4455
- publish: $(vsixPath)
4556
artifact: vscode-powershell-vsix-$(System.JobId)

README.md

+12-5
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,23 @@ not activated by default, but after installing this extension either click "Set
2121
Theme" or use the [theme picker](https://code.visualstudio.com/docs/getstarted/themes) and
2222
select "PowerShell ISE" for a fun and familiar experience.
2323

24-
## Platform support
24+
## Platform Support
2525

26-
- **Windows 7 through 10** with Windows PowerShell v3 and higher, and PowerShell Core
27-
- **Linux** with PowerShell Core (all PowerShell-supported distributions)
28-
- **macOS and OS X** with PowerShell Core
26+
The extension _should_ work anywhere VS Code itself and PowerShell Core 7 or higher is
27+
[supported][]. For Windows PowerShell, only version 5.1 is supported. Please note that
28+
PowerShell Core 6 is end-of-life and so not supported. Our test matrix includes the
29+
following:
30+
31+
- **Windows Server 2016 and 2019** with Windows PowerShell 5.1 and PowerShell Core 7.1.4
32+
- **macOS 10.15** with PowerShell Core 7.1.4
33+
- **Ubuntu 20.04** with PowerShell Core 7.1.4
34+
35+
[supported]: https://docs.microsoft.com/en-us/powershell/scripting/powershell-support-lifecycle?view=powershell-7.1#supported-platforms
2936

3037
Read the [installation instructions](https://docs.microsoft.com/en-us/powershell/scripting/components/vscode/using-vscode)
3138
to get more details on how to use the extension on these platforms.
3239

33-
Read the [troubleshooting guide](./docs/troubleshooting.md) for answers to common questions.
40+
**Read the [troubleshooting guide](./docs/troubleshooting.md) for answers to common questions.**
3441

3542
## Features
3643

0 commit comments

Comments
 (0)