File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,13 @@ environment:
1919 - dependencies : highest
2020 php_ver_target : 7.1
2121
22- # # Cache composer bits
22+ # # Cache composer, chocolatey and php bits
2323cache :
2424 - ' %LOCALAPPDATA%\Composer\files -> composer.lock'
25+ - composer.phar
26+ - C:\ProgramData\chocolatey\bin -> .appveyor.yml
27+ - C:\ProgramData\chocolatey\lib -> .appveyor.yml
28+ - c:\tools\php -> .appveyor.yml
2529
2630# # Set up environment varriables
2731init :
3337# # Install PHP and composer, and run the appropriate composer command
3438install :
3539 - 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|]','')
40+ - 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|]','')
3741 - cd c:\tools\php
3842 - IF %PHP%==1 copy php.ini-production php.ini /Y
3943 - IF %PHP%==1 echo date.timezone="UTC" >> php.ini
@@ -52,4 +56,4 @@ install:
5256# # Run the actual test
5357test_script :
5458 - cd c:\projects\php-project-workspace
55- - vendor/bin/phpunit -c phpunit.xml.dist
59+ - vendor/bin/phpunit -c phpunit.xml.dist
You can’t perform that action at this time.
0 commit comments