Skip to content

Commit b3018ea

Browse files
committed
reduce build matrix to accellerate CI testing
1 parent 9a20e22 commit b3018ea

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

appveyor.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ environment:
22
PSVersion: 5
33
BuildConfiguration: Release
44
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
99
- APPVEYOR_BUILD_WORKER_IMAGE: WMF 4
1010
PowerShellEdition: WindowsPowerShell
1111
PSVersion: 4
12-
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
13-
PowerShellEdition: PowerShellCore
12+
# - APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
13+
# PowerShellEdition: PowerShellCore
1414

1515
# cache Nuget packages and dotnet CLI cache
1616
cache:
@@ -19,16 +19,16 @@ cache:
1919
install:
2020
- ps: if ($env:PowerShellEdition -eq 'WindowsPowerShell') { Import-Module .\tools\appveyor.psm1; Invoke-AppveyorInstall }
2121
- 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+
# }
3232

3333
build_script:
3434
- ps: |
@@ -40,23 +40,23 @@ build_script:
4040
}
4141
./build.ps1 -Configuration "$env:BuildConfiguration" -PSVersion "$env:PSVersion" -Framework full
4242
}
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+
# }
4949

5050
test_script:
5151
- ps: |
5252
if ($env:PowerShellEdition -eq 'WindowsPowerShell') {
5353
Invoke-AppveyorTest -CheckoutPath $env:APPVEYOR_BUILD_FOLDER
5454
}
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+
# }
6060

6161
# Upload the project along with test results as a zip archive
6262
on_finish:

0 commit comments

Comments
 (0)