@@ -2,15 +2,15 @@ environment:
2
2
PSVersion : 5
3
3
BuildConfiguration : Release
4
4
matrix :
5
- - APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
6
- PowerShellEdition : PowerShellCore
7
- - APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
8
- PowerShellEdition : WindowsPowerShell
5
+ # - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
6
+ # PowerShellEdition: PowerShellCore
7
+ # - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
8
+ # PowerShellEdition: WindowsPowerShell
9
9
- APPVEYOR_BUILD_WORKER_IMAGE : WMF 4
10
10
PowerShellEdition : WindowsPowerShell
11
11
PSVersion : 4
12
- - APPVEYOR_BUILD_WORKER_IMAGE : Ubuntu
13
- PowerShellEdition : PowerShellCore
12
+ # - APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
13
+ # PowerShellEdition: PowerShellCore
14
14
15
15
# cache Nuget packages and dotnet CLI cache
16
16
cache :
@@ -19,16 +19,16 @@ cache:
19
19
install :
20
20
- ps : if ($env:PowerShellEdition -eq 'WindowsPowerShell') { Import-Module .\tools\appveyor.psm1; Invoke-AppveyorInstall }
21
21
- pwsh : if ($env:PowerShellEdition -eq 'PowerShellCore') { Import-Module .\tools\appveyor.psm1; Invoke-AppveyorInstall }
22
- - ps : |
23
- # Windows image still has version 6.0.0 of pwsh but 6.0.2 is required due to System.Management.Automation package https://github.com/appveyor/ci/issues/2230
24
- if ($env:PowerShellEdition -eq 'PowerShellCore' -and $PSVersionTable.PSVersion -lt [version]'6.0.2' -and $IsWindows) {
25
- $msiPath = "$env:TEMP\PowerShell-6.0.2-win-x64.msi"
26
- (New-Object Net.WebClient).DownloadFile('https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/PowerShell-6.0.2-win-x64.msi', $msiPath)
27
- Write-Verbose 'Installing pwsh 6.0.2' -Verbose
28
- Start-Process 'msiexec.exe' -Wait -ArgumentList "/i $msiPath /quiet"
29
- Remove-Item $msiPath
30
- $env:Path = "$env:ProgramFiles\PowerShell\6.0.2;$env:Path"
31
- }
22
+ # - ps: |
23
+ # # Windows image still has version 6.0.0 of pwsh but 6.0.2 is required due to System.Management.Automation package https://github.com/appveyor/ci/issues/2230
24
+ # if ($env:PowerShellEdition -eq 'PowerShellCore' -and $PSVersionTable.PSVersion -lt [version]'6.0.2' -and $IsWindows) {
25
+ # $msiPath = "$env:TEMP\PowerShell-6.0.2-win-x64.msi"
26
+ # (New-Object Net.WebClient).DownloadFile('https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/PowerShell-6.0.2-win-x64.msi', $msiPath)
27
+ # Write-Verbose 'Installing pwsh 6.0.2' -Verbose
28
+ # Start-Process 'msiexec.exe' -Wait -ArgumentList "/i $msiPath /quiet"
29
+ # Remove-Item $msiPath
30
+ # $env:Path = "$env:ProgramFiles\PowerShell\6.0.2;$env:Path"
31
+ # }
32
32
33
33
build_script :
34
34
- ps : |
@@ -40,23 +40,23 @@ build_script:
40
40
}
41
41
./build.ps1 -Configuration "$env:BuildConfiguration" -PSVersion "$env:PSVersion" -Framework full
42
42
}
43
- - pwsh : |
44
- if ($env:PowerShellEdition -eq 'PowerShellCore') {
45
- Set-Location $env:APPVEYOR_BUILD_FOLDER
46
- ./build.ps1 -Documentation
47
- ./build.ps1 -Configuration "$env:BuildConfiguration" -PSVersion 5 -Framework core
48
- }
43
+ # - pwsh: |
44
+ # if ($env:PowerShellEdition -eq 'PowerShellCore') {
45
+ # Set-Location $env:APPVEYOR_BUILD_FOLDER
46
+ # ./build.ps1 -Documentation
47
+ # ./build.ps1 -Configuration "$env:BuildConfiguration" -PSVersion 5 -Framework core
48
+ # }
49
49
50
50
test_script :
51
51
- ps : |
52
52
if ($env:PowerShellEdition -eq 'WindowsPowerShell') {
53
53
Invoke-AppveyorTest -CheckoutPath $env:APPVEYOR_BUILD_FOLDER
54
54
}
55
- - pwsh : |
56
- if ($env:PowerShellEdition -eq 'PowerShellCore') {
57
- Import-Module .\tools\appveyor.psm1 # Appveyor does not persist pwsh sessions like it does for ps
58
- Invoke-AppveyorTest -CheckoutPath $env:APPVEYOR_BUILD_FOLDER
59
- }
55
+ # - pwsh: |
56
+ # if ($env:PowerShellEdition -eq 'PowerShellCore') {
57
+ # Import-Module .\tools\appveyor.psm1 # Appveyor does not persist pwsh sessions like it does for ps
58
+ # Invoke-AppveyorTest -CheckoutPath $env:APPVEYOR_BUILD_FOLDER
59
+ # }
60
60
61
61
# Upload the project along with test results as a zip archive
62
62
on_finish :
0 commit comments