Skip to content

Commit 9e7e5e9

Browse files
committed
Updated AppVeyor config
1 parent bb6f3e3 commit 9e7e5e9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

appveyor.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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
2323
cache:
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
2731
init:
@@ -33,7 +37,7 @@ init:
3337
## Install PHP and composer, and run the appropriate composer command
3438
install:
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
5357
test_script:
5458
- cd c:\projects\php-project-workspace
55-
- vendor/bin/phpunit -c phpunit.xml.dist
59+
- vendor/bin/phpunit -c phpunit.xml.dist

0 commit comments

Comments
 (0)