Skip to content

Commit

Permalink
Merge pull request #371 from KnpLabs/fix/appveyor-build
Browse files Browse the repository at this point in the history
Fix AppVeyor build
  • Loading branch information
alexpozzi authored Oct 18, 2019
2 parents 8b0e317 + 4096d75 commit 63be9a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63be9a2

Please sign in to comment.