Skip to content

Commit 9aad37e

Browse files
Add appveyor script
1 parent 0b22ef1 commit 9aad37e

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

appveyor.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
build: false
2+
clone_folder: c:\reflectiondocblock
3+
max_jobs: 3
4+
platform: x86
5+
pull_requests:
6+
do_not_increment_build_number: true
7+
version: '{build}.{branch}'
8+
skip_tags: true
9+
branches:
10+
only:
11+
- master
12+
13+
environment:
14+
matrix:
15+
- php_ver_target: 7.1
16+
- php_ver_target: 7.2
17+
matrix:
18+
fast_finish: false
19+
20+
cache:
21+
- c:\php -> appveyor.yml
22+
- '%LOCALAPPDATA%\Composer\files'
23+
24+
init:
25+
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
26+
- SET COMPOSER_NO_INTERACTION=1
27+
- SET PHP=1
28+
- SET ANSICON=121x90 (121x90)
29+
30+
31+
install:
32+
- IF EXIST c:\tools\php (SET PHP=0)
33+
- ps: appveyor-retry cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php_ver_target | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
34+
- cd c:\tools\php
35+
- IF %PHP%==1 copy /Y php.ini-development php.ini
36+
- IF %PHP%==1 echo max_execution_time=1200 >> php.ini
37+
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
38+
- IF %PHP%==1 echo extension_dir=ext >> php.ini
39+
- IF %PHP%==1 echo extension=php_curl.dll >> php.ini
40+
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
41+
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
42+
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
43+
- IF %PHP%==1 echo zend.assertions=1 >> php.ini
44+
- IF %PHP%==1 echo assert.exception=On >> 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:\reflectiondocblock
48+
- composer install --no-interaction --prefer-dist --no-progress
49+
- composer global require phpunit/phpunit ^6
50+
- composer global config bin-dir --absolute
51+
52+
test_script:
53+
- cd c:\reflectiondocblock
54+
- c:\Users\appveyor\AppData\Roaming\Composer\vendor\bin\phpunit --no-coverage

0 commit comments

Comments
 (0)