Skip to content

Commit

Permalink
Downgrade chocolatey if required
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge authored Nov 17, 2019
1 parent 7f0fa52 commit a934b62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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|]','')
Expand Down

0 comments on commit a934b62

Please sign in to comment.