forked from odenktools/php-bca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
53 lines (46 loc) · 1.76 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
build: false
shallow_clone: true
platform: x86
clone_folder: c:\projects\php-bca
environment:
matrix:
- PHP_DOWNLOAD_FILE: php-5.4.9-nts-Win32-VC9-x86.zip
skip_commits:
message: /\[ci skip\]/
cache:
- c:\php -> appveyor.yml
- '%LOCALAPPDATA%\Composer'
init:
- SET PATH=c:\php;%PATH%
- SET COMPOSER_NO_INTERACTION=1
- SET PHP=1
install:
- IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php)
- cd c:\php
- IF %PHP%==1 appveyor DownloadFile http://windows.php.net/downloads/releases/archives/%PHP_DOWNLOAD_FILE%
- IF %PHP%==1 appveyor DownloadFile https://xdebug.org/files/php_xdebug-2.2.3-5.4-vc9.dll
- IF %PHP%==1 7z x %PHP_DOWNLOAD_FILE% -y > 7z.log
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
- appveyor DownloadFile https://getcomposer.org/composer.phar
- mv php_xdebug-2.2.3-5.4-vc9.dll ext\
- copy php.ini-production php.ini /Y
- echo date.timezone="UTC" >> php.ini
- echo extension_dir=ext >> php.ini
- echo extension=php_openssl.dll >> php.ini
- echo extension=php_curl.dll >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_fileinfo.dll >> php.ini
- echo zend_extension=php_xdebug-2.2.3-5.4-vc9.dll >> php.ini
- echo xdebug.remote_autostart = 1 >> php.ini
- echo xdebug.remote_enable = 1 >> php.ini
- echo xdebug.profiler_append = 0 >> php.ini
- echo xdebug.profiler_enable = 0 >> php.ini
- echo xdebug.profiler_enable_trigger = 0 >> php.ini
- echo xdebug.remote_cookie_expire_time = 36000 >> php.ini
- cd c:\projects\php-bca
- SET COMPOSER_ROOT_VERSION=dev-master
- composer self-update
- composer update --no-progress --ansi
test_script:
- cd c:\projects\php-bca
- vendor\bin\phpunit.bat --verbose