From 4096d756922d6363b92736ece3f085fbd42b877d Mon Sep 17 00:00:00 2001 From: alexpozzi Date: Fri, 11 Oct 2019 15:42:19 +0200 Subject: [PATCH] Downgrade Chocolatey version --- appveyor.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 07048393..2d7cfaaa 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -25,9 +25,14 @@ init: install: - IF EXIST c:\tools\php (SET PHP=0) + - ps: Set-Service wuauserv -StartupType Manual + # In order to be able to list all the avialable PHP packages we have to + # downgrade Chocolatey to version 0.10.13. + # See https://github.com/chocolatey/choco/issues/1843 + - ps: choco install chocolatey -y --version 0.10.13 --allow-downgrade --force - ps: choco search php --exact --all-versions -r - ps: echo ((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|]','') - - ps: appveyor-retry cinst php --params '""/InstallDir:c:\tools\php""' --ignore-checksums -y --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|]','') + - ps: appveyor-retry cinst php --params '""/InstallDir:c:\tools\php""' --ignore-checksums -y --force --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|]','') - cd c:\tools\php - IF %PHP%==1 copy php.ini-production php.ini /Y - IF %PHP%==1 echo date.timezone="UTC" >> php.ini