Skip to content

Commit 50dcd1b

Browse files
committed
AppVeyor config
1 parent f6b8f02 commit 50dcd1b

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

appveyor.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
build: false
2+
platform:
3+
- x86
4+
- x64
5+
clone_folder: c:\projects\php-pusher-client
6+
7+
8+
## Build matrix for lowest and highest possible targets
9+
environment:
10+
matrix:
11+
- dependencies: lowest
12+
- dependencies: current
13+
- dependencies: highest
14+
15+
## Cache composer bits
16+
cache:
17+
- c:\tools\php -> appveyor.yml
18+
- c:\projects\php-pusher-client\vendor -> composer.lock
19+
- '%LOCALAPPDATA%\Composer\files -> composer.lock'
20+
21+
## Set up environment varriables
22+
init:
23+
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
24+
- SET COMPOSER_NO_INTERACTION=1
25+
- SET PHP=1
26+
- SET ANSICON=121x90 (121x90)
27+
28+
## Install PHP and composer, and run the appropriate composer command
29+
install:
30+
- IF EXIST c:\tools\php (SET PHP=0)
31+
- IF %PHP%==1 cinst -y OpenSSL.Light
32+
- IF %PHP%==1 cinst -y php
33+
- cd c:\tools\php
34+
- IF %PHP%==1 copy php.ini-production php.ini /Y
35+
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
36+
- IF %PHP%==1 echo extension_dir=ext >> php.ini
37+
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
38+
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
39+
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
40+
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
41+
- appveyor DownloadFile https://getcomposer.org/composer.phar
42+
- cd c:\projects\reactphp-child-process-messenger
43+
- composer config github-oauth.github.com %GH_TOKEN%
44+
- IF %dependencies%==lowest composer update --prefer-lowest --no-progress -n
45+
- IF %dependencies%==current composer install --no-progress
46+
- IF %dependencies%==highest composer update --no-progress -n
47+
- composer show -i
48+
49+
## Run the actual test
50+
test_script:
51+
- cd c:\projects\php-pusher-client
52+
- vendor/bin/phpunit -c phpunit.xml.dist

0 commit comments

Comments
 (0)