File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed 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+ # # Build matrix with the different PHP versions we test against
8+ environment :
9+ matrix :
10+ - php_ver_target : 5.6
11+ - php_ver_target : 7.0
12+ - php_ver_target : 7.1
13+
14+ # # Cache composer bits
15+ cache :
16+ - ' %LOCALAPPDATA%\Composer\files -> composer.lock'
17+
18+ # # Set up environment varriables
19+ init :
20+ - SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
21+ - SET COMPOSER_NO_INTERACTION=1
22+ - SET PHP=1
23+ - SET ANSICON=121x90 (121x90)
24+
25+ # # Install PHP and composer, and run the appropriate composer command
26+ install :
27+ - IF EXIST c:\tools\php (SET PHP=0)
28+ - 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|]','')
29+ - cd c:\tools\php
30+ - IF %PHP%==1 copy php.ini-production php.ini /Y
31+ - IF %PHP%==1 echo date.timezone="UTC" >> php.ini
32+ - IF %PHP%==1 echo extension_dir=ext >> php.ini
33+ - IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
34+ - IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
35+ - IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
36+ - IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
37+ - appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
38+ - cd c:\projects\php-project-workspace
39+ - appveyor-retry composer install --no-progress --profile
40+ - composer show
41+
42+ # # Run the actual test
43+ test_script :
44+ - cd c:\projects\php-project-workspace
45+ - vendor/bin/phpunit -c phpunit.xml.dist
You can’t perform that action at this time.
0 commit comments