File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ build : false
2+ platform :
3+ - x64
4+ - x86
5+ clone_folder : c:\projects\php-project-workspace
6+
7+
8+ # # Build matrix with the different PHP versions we test against
9+ environment :
10+ matrix :
11+ - php_ver_target : 5.6
12+ - php_ver_target : 7.0
13+ - php_ver_target : 7.1
14+
15+ # # Cache composer bits
16+ cache :
17+ - ' %LOCALAPPDATA%\Composer\files -> composer.lock'
18+
19+ # # Set up environment varriables
20+ init :
21+ - SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
22+ - SET COMPOSER_NO_INTERACTION=1
23+ - SET PHP=1
24+ - SET ANSICON=121x90 (121x90)
25+
26+ # # Install PHP and composer, and run the appropriate composer command
27+ install :
28+ - IF EXIST c:\tools\php (SET PHP=0)
29+ - ps : appveyor-retry cinst --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $Env:php_ver_target | Select-Object -first 1) -replace '[php|]','')
30+ - cd c:\tools\php
31+ - IF %PHP%==1 copy php.ini-production php.ini /Y
32+ - IF %PHP%==1 echo date.timezone="UTC" >> php.ini
33+ - IF %PHP%==1 echo extension_dir=ext >> php.ini
34+ - IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
35+ - IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
36+ - IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
37+ - IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
38+ - appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
39+ - cd c:\projects\php-project-workspace
40+ - appveyor-retry composer install --no-progress --profile
41+ - composer show
42+
43+ # # Run the actual test
44+ test_script :
45+ - cd c:\projects\php-project-workspace
46+ - vendor/bin/phpunit -c phpunit.xml.dist
You can’t perform that action at this time.
0 commit comments