-
Notifications
You must be signed in to change notification settings - Fork 23
/
.appveyor.yml
82 lines (73 loc) · 3.15 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '{branch}-{build}'
build: false
shallow_clone: false
platform: x64
clone_folder: c:\projects\behat-code-coverage
pull_requests:
do_not_increment_build_number: true
environment:
COMPOSER_ROOT_VERSION: '7.0-dev'
matrix:
- PHP_VERSION: '7.2.0-Win32-VC15-x86'
DEPENDENCIES: ''
XDEBUG_VERSION: '2.6.0-7.2-vc15'
- PHP_VERSION: '7.2.0-Win32-VC15-x86'
DEPENDENCIES: '--prefer-lowest'
XDEBUG_VERSION: '2.6.0-7.2-vc15'
- PHP_VERSION: '7.1.12-Win32-VC14-x86'
DEPENDENCIES: ''
XDEBUG_VERSION: '2.6.0-7.1-vc14'
- PHP_VERSION: '7.1.12-Win32-VC14-x86'
DEPENDENCIES: '--prefer-lowest'
XDEBUG_VERSION: '2.6.0-7.1-vc14'
matrix:
fast_finish: true
#branches:
#only:
#- master
skip_commits:
message: /\[ci skip\]/
cache:
- c:\php -> appveyor.yml
- c:\projects\behat-code-coverage\vendor
- '%LOCALAPPDATA%\Composer\files'
init:
- SET PATH=c:\php\%PHP_VERSION%;%PATH%
- SET COMPOSER_NO_INTERACTION=1
- SET PHP=1
- SET ANSICON=121x90 (121x90)
- git config --global core.autocrlf input
install:
- IF NOT EXIST c:\php mkdir c:\php
- IF NOT EXIST c:\php\%PHP_VERSION% mkdir c:\php\%PHP_VERSION%
- cd c:\php\%PHP_VERSION%
- IF NOT EXIST php-installed.txt curl -fsS -o php-%PHP_VERSION%.zip https://windows.php.net/downloads/releases/archives/php-%PHP_VERSION%.zip
- IF NOT EXIST php-installed.txt 7z x php-%PHP_VERSION%.zip -y >nul
- IF NOT EXIST php-installed.txt del /Q *.zip
- IF NOT EXIST php-installed.txt copy /Y php.ini-development php.ini
- IF NOT EXIST php-installed.txt echo max_execution_time=1200 >> php.ini
- IF NOT EXIST php-installed.txt echo date.timezone="UTC" >> php.ini
- IF NOT EXIST php-installed.txt echo extension_dir=ext >> php.ini
- IF NOT EXIST php-installed.txt echo extension=php_curl.dll >> php.ini
- IF NOT EXIST php-installed.txt echo extension=php_openssl.dll >> php.ini
- IF NOT EXIST php-installed.txt echo extension=php_mbstring.dll >> php.ini
- IF NOT EXIST php-installed.txt echo extension=php_fileinfo.dll >> php.ini
- IF NOT EXIST php-installed.txt echo extension=php_mysqli.dll >> php.ini
- IF NOT EXIST php-installed.txt echo extension=php_pdo_sqlite.dll >> php.ini
- IF NOT EXIST php-installed.txt echo zend.assertions=1 >> php.ini
- IF NOT EXIST php-installed.txt echo assert.exception=On >> php.ini
- IF NOT EXIST php-installed.txt appveyor DownloadFile https://getcomposer.org/composer.phar
- IF NOT EXIST php-installed.txt echo @php %%~dp0composer.phar %%* > composer.bat
- IF NOT EXIST php-installed.txt type nul >> php-installed.txt
- IF %PHP%==1 appveyor DownloadFile https://xdebug.org/files/php_xdebug-%XDEBUG_VERSION%.dll
- mv php_xdebug-%XDEBUG_VERSION%.dll ext\
- echo zend_extension="php_xdebug-%XDEBUG_VERSION%.dll" >> php.ini
- echo xdebug.remote_enable=true >> php.ini
- echo xdebug.remote_autostart=true >> php.ini
- cd c:\projects\behat-code-coverage
- composer self-update
- composer update --no-progress --no-ansi --no-interaction --no-suggest --optimize-autoloader --prefer-stable %DEPENDENCIES%
test_script:
- cd c:\projects\behat-code-coverage
- bin\phpcs
- phpdbg -qrr vendor\phpunit\phpunit\phpunit -vvv