File tree 3 files changed +52
-16
lines changed 3 files changed +52
-16
lines changed Original file line number Diff line number Diff line change @@ -22,23 +22,41 @@ resources:
22
22
ref : master
23
23
24
24
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
27
45
pool :
28
46
vmImage : windows-2019
29
47
steps :
30
48
- template : templates/ci-general.yml
31
49
32
- - job : macOS
33
- displayName : macOS 10.15
50
+ - job : PS7_macOS
51
+ displayName : PowerShell 7 - macOS 10.15
34
52
pool :
35
53
vmImage : macOS-10.15
36
54
steps :
37
55
- template : templates/ci-general.yml
38
56
39
- - job : Ubuntu
40
- displayName : Ubuntu 20.04
57
+ - job : PS7_Ubuntu
58
+ displayName : PowerShell 7 - Ubuntu 20.04
41
59
pool :
42
- vmImage : Ubuntu -20.04
60
+ vmImage : ubuntu -20.04
43
61
steps :
44
62
- template : templates/ci-general.yml
Original file line number Diff line number Diff line change 1
1
parameters :
2
+ - name : pwsh
3
+ type : boolean
4
+ default : true
2
5
- name : usePipelineArtifact
3
6
type : boolean
4
7
default : false
5
8
6
9
steps :
7
- - pwsh : $PSVersionTable
10
+ - task : PowerShell@2
8
11
displayName : PowerShell version
12
+ inputs :
13
+ targetType : inline
14
+ script : $PSVersionTable
15
+ pwsh : ${{ parameters.pwsh }}
9
16
10
17
- checkout : self
11
18
@@ -34,12 +41,16 @@ steps:
34
41
archiveFilePatterns : $(Pipeline.Workspace)/PowerShellEditorServices.zip
35
42
destinationFolder : $(Build.SourcesDirectory)/vscode-powershell/modules
36
43
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
41
45
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 }}
43
54
44
55
- publish : $(vsixPath)
45
56
artifact : vscode-powershell-vsix-$(System.JobId)
Original file line number Diff line number Diff line change @@ -23,9 +23,16 @@ select "PowerShell ISE" for a fun and familiar experience.
23
23
24
24
## Platform support
25
25
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 VS Code extension _ should_ work anywhere VS Code itself and PowerShell Core 7 or
27
+ higher is [ supported] [ ] . For Windows PowerShell, only version 5.1 is supported. Please
28
+ note that PowerShell Core 6 is end-of-life and so not supported. Our test matrix includes
29
+ the following:
30
+
31
+ - ** Windows 10 and Windows Server 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
29
36
30
37
Read the [ installation instructions] ( https://docs.microsoft.com/en-us/powershell/scripting/components/vscode/using-vscode )
31
38
to get more details on how to use the extension on these platforms.
You can’t perform that action at this time.
0 commit comments