-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
64 lines (51 loc) · 2.29 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
build: false
init:
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php71;c:\cygwin\bin;%PATH%
# uncomment to allow remote desktop connection
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
on_finish:
# uncomment to show remote desktop connection details and block build
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
services:
- mysql
environment:
JACKRABBIT_VERSION: '2.12.0'
SYMFONY__DATABASE__PASSWORD: Password12!
platform: x86
cache:
# cache composer downloads
- '%LOCALAPPDATA%\Composer\files'
# jackrabbit will be re-downloaded when jackrabbit.sh is modified.
- jackrabbit-standalone-%JACKRABBIT_VERSION%.jar -> bin\jackrabbit.sh
install:
# install SSL and php
- ps: Set-Service wuauserv -StartupType Manual
- cinst -y OpenSSL.Light
- cinst -y php
# configure PHP and enable extensions.
- cd c:\tools\php71
- copy php.ini-production php.ini /Y
- echo date.timezone="UTC" >> php.ini
- echo extension_dir=ext >> php.ini
- echo extension=php_gd2.dll >> php.ini
- echo extension=php_openssl.dll >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_intl.dll >> php.ini
- echo extension=php_pdo_sqlite.dll >> php.ini
- echo extension=php_pdo_mysql.dll >> php.ini
- echo extension=php_curl.dll >> php.ini
- echo extension=php_fileinfo.dll >> php.ini
- echo memory_limit=1G >> php.ini
- appveyor DownloadFile https://phar.phpunit.de/phpunit.phar
- ps: echo ("@php c:\tools\php71\phpunit.phar %*") | Out-File phpunit.bat -encoding ascii
# install and start jackrabbit
- cd %APPVEYOR_BUILD_FOLDER%
- if not exist jackrabbit-standalone-%JACKRABBIT_VERSION%.jar appveyor DownloadFile http://archive.apache.org/dist/jackrabbit/%JACKRABBIT_VERSION%/jackrabbit-standalone-%JACKRABBIT_VERSION%.jar
- ps: Start-Process ("jackrabbit-standalone-" + $env:JACKRABBIT_VERSION + ".jar")
# install composer and phpunit
- cd %APPVEYOR_BUILD_FOLDER%
- php -r "readfile('http://getcomposer.org/installer');" | php
- php composer.phar install --no-interaction --no-progress --prefer-dist
test_script:
- cd %APPVEYOR_BUILD_FOLDER%
- php bin/runtests -i -a