forked from phingofficial/phing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
50 lines (43 loc) · 1.56 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
# http://www.appveyor.com/docs/appveyor-yml
build: false
shallow_clone: false
platform:
- x64
clone_folder: C:\projects\phing
environment:
matrix:
- php_ver_target: 5.6
- php_ver_target: 7.0
cache:
- '%APPDATA%\Composer'
- C:\tools\php -> appveyor.yml
init:
- SET PATH=C:\Program Files\OpenSSL;C:\tools\php;%PATH%
- SET COMPOSER_NO_INTERACTION=1
- SET PHP=1
- SET ANSICON=121x90 (121x90)
branches:
except:
- gh-pages
install:
- IF EXIST c:\tools\php (SET PHP=0)
- IF %PHP%==1 cinst -y OpenSSL.Light
- ps: appveyor-retry cinst -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $Env:php_ver_target | Select-Object -first 1) -replace '[php|]','')
- cd C:\tools\php
- IF %PHP%==1 copy php.ini-production php.ini
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
- IF %PHP%==1 echo memory_limit=1024M >> php.ini
- IF %PHP%==1 echo extension_dir=ext >> php.ini
- IF %PHP%==1 echo extension=php_curl.dll >> php.ini
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
- appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
- cd c:\projects\phing
- appveyor-retry composer install --no-progress --profile --prefer-dist --no-interaction
before_test:
- php --version
test_script:
- cd C:\projects\phing\test
- ..\vendor\bin\phing