1
+ build : false
2
+ platform :
3
+ - x64
4
+ clone_folder : c:\projects\php-project-workspace
5
+
6
+
7
+ # # Build matrix for lowest and highest possible targets
8
+ environment :
9
+ matrix :
10
+ - dependencies : lowest
11
+ php_ver_target : 5.6
12
+ - dependencies : lowest
13
+ php_ver_target : 7.0
14
+ - dependencies : current
15
+ php_ver_target : 5.6
16
+ - dependencies : highest
17
+ php_ver_target : 7.0
18
+ - dependencies : highest
19
+ php_ver_target : 5.6
20
+ - dependencies : highest
21
+ php_ver_target : 7.0
22
+
23
+ # # Cache composer bits
24
+ cache :
25
+ - ' %LOCALAPPDATA%\Composer\files -> composer.lock'
26
+
27
+ # # Set up environment varriables
28
+ init :
29
+ - SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
30
+ - SET COMPOSER_NO_INTERACTION=1
31
+ - SET PHP=1
32
+ - SET ANSICON=121x90 (121x90)
33
+
34
+ # # Install PHP and composer, and run the appropriate composer command
35
+ install :
36
+ - IF EXIST c:\tools\php (SET PHP=0)
37
+ - 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|]','')
38
+ - cd c:\tools\php
39
+ - IF %PHP%==1 copy php.ini-production php.ini /Y
40
+ - IF %PHP%==1 echo date.timezone="UTC" >> php.ini
41
+ - IF %PHP%==1 echo extension_dir=ext >> php.ini
42
+ - IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
43
+ - IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
44
+ - IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
45
+ - IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
46
+ - appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
47
+ - cd c:\projects\php-project-workspace
48
+ - IF %dependencies%==lowest appveyor-retry composer update --prefer-lowest --no-progress --profile -n
49
+ - IF %dependencies%==current appveyor-retry composer install --no-progress --profile
50
+ - IF %dependencies%==highest appveyor-retry composer update --no-progress --profile -n
51
+ - composer show
52
+
53
+ # # Run the actual test
54
+ test_script :
55
+ - cd c:\projects\php-project-workspace
56
+ - vendor/bin/phpunit -c phpunit.xml.dist
0 commit comments