Skip to content

Commit 96d9f5b

Browse files
committed
Updated AppVeyor config
1 parent 133625b commit 96d9f5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ environment:
1919
- dependencies: highest
2020
php_ver_target: 7.1
2121

22-
## Cache composer bits
22+
## Cache composer, chocolatey and php bits
2323
cache:
2424
- '%LOCALAPPDATA%\Composer\files -> composer.lock'
2525

@@ -33,7 +33,7 @@ init:
3333
## Install PHP and composer, and run the appropriate composer command
3434
install:
3535
- IF EXIST c:\tools\php (SET PHP=0)
36-
- ps: appveyor-retry cinst -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $Env:php_ver_target | Select-Object -first 1) -replace '[php|]','')
36+
- ps: appveyor-retry cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y 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|]','')
3737
- cd c:\tools\php
3838
- IF %PHP%==1 copy php.ini-production php.ini /Y
3939
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini

0 commit comments

Comments
 (0)