From a934b62213431ad0a8f19d493b9ea075026a1a4b Mon Sep 17 00:00:00 2001 From: George Wilson Date: Sun, 17 Nov 2019 23:30:18 +0000 Subject: [PATCH] Downgrade chocolatey if required See https://github.com/chocolatey/choco/issues/1843 --- .appveyor.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.appveyor.yml b/.appveyor.yml index 12e64f35e..e9f3753f4 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -47,6 +47,7 @@ services: ## Install PHP and composer, and run the appropriate composer command install: - IF EXIST c:\tools\php (SET PHP=0) + - ps: IF %PHP%==1 choco upgrade chocolatey -y --version 0.10.13 --allow-downgrade - ps: >- If ($env:php_ver_target -eq "5.6") { appveyor-retry cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y --forcex86 php --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php_ver_target | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')