From 1f855ac693c6d8dcc9c87ecbf032178ca192cc53 Mon Sep 17 00:00:00 2001 From: Wilmar den Ouden Date: Tue, 30 Oct 2018 22:46:44 +0100 Subject: [PATCH] Removes update of pwsh since appveyor images are updated (#1084) --- appveyor.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 49ed21b69..07c891a40 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -19,16 +19,6 @@ cache: install: - ps: if ($env:PowerShellEdition -eq 'WindowsPowerShell') { Import-Module .\tools\appveyor.psm1; Invoke-AppveyorInstall } - pwsh: if ($env:PowerShellEdition -eq 'PowerShellCore') { Import-Module .\tools\appveyor.psm1; Invoke-AppveyorInstall } - - ps: | - # 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 - if ($env:PowerShellEdition -eq 'PowerShellCore' -and $PSVersionTable.PSVersion -lt [version]'6.0.2' -and $IsWindows) { - $msiPath = "$env:TEMP\PowerShell-6.0.2-win-x64.msi" - (New-Object Net.WebClient).DownloadFile('https://github.com/PowerShell/PowerShell/releases/download/v6.0.2/PowerShell-6.0.2-win-x64.msi', $msiPath) - Write-Verbose 'Installing pwsh 6.0.2' -Verbose - Start-Process 'msiexec.exe' -Wait -ArgumentList "/i $msiPath /quiet" - Remove-Item $msiPath - $env:Path = "$env:ProgramFiles\PowerShell\6.0.2;$env:Path" - } build_script: - ps: |