@@ -3,39 +3,50 @@ platform:
33 - x64
44clone_folder : c:\projects\php-project-workspace
55
6-
76# # Build matrix for lowest and highest possible targets
87environment :
98 matrix :
109 - dependencies : lowest
1110 php_ver_target : 7.0
11+ - dependencies : lowest
12+ php_ver_target : 7.1
1213 - dependencies : current
1314 php_ver_target : 7.0
15+ - dependencies : current
16+ php_ver_target : 7.1
1417 - dependencies : highest
1518 php_ver_target : 7.0
19+ - dependencies : highest
20+ php_ver_target : 7.1
1621
1722# # Cache composer bits
1823cache :
19- - C:\ProgramData\chocolatey\bin -> appveyor.yml
20- - C:\ProgramData\chocolatey\lib -> appveyor.yml
21- - C:\tools\php -> appveyor.yml
2224 - ' %LOCALAPPDATA%\Composer\files -> composer.lock'
2325
2426# # Set up environment varriables
2527init :
26- - SET COMPOSER_ROOT_VERSION=dev-master # # Temporary until we tag first versions
2728 - SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
2829 - SET COMPOSER_NO_INTERACTION=1
2930 - SET PHP=1
3031 - SET ANSICON=121x90 (121x90)
3132
3233# # Install PHP and composer, and run the appropriate composer command
3334install :
34- - ps : IF (!(Test-Path c:\tools\php)) {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|]',''); cmd.exe /c 'appveyor.bat'}
35+ - 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|]','')
37+ - cd c:\tools\php
38+ - IF %PHP%==1 copy php.ini-production php.ini /Y
39+ - IF %PHP%==1 echo date.timezone="UTC" >> php.ini
40+ - IF %PHP%==1 echo extension_dir=ext >> php.ini
41+ - IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
42+ - IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
43+ - IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
44+ - IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
45+ - appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
3546 - cd c:\projects\php-project-workspace
36- - IF %dependencies%==lowest appveyor-retry composer update --prefer-lowest --no-progress -n
37- - IF %dependencies%==current appveyor-retry composer install --no-progress
38- - IF %dependencies%==highest appveyor-retry composer update --no-progress -n
47+ - IF %dependencies%==lowest appveyor-retry composer update --prefer-lowest --no-progress --profile - n
48+ - IF %dependencies%==current appveyor-retry composer install --no-progress --profile
49+ - IF %dependencies%==highest appveyor-retry composer update --no-progress --profile - n
3950 - composer show
4051
4152# # Run the actual test
0 commit comments