forked from sulu/sulu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
79 lines (66 loc) · 2.55 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
build: false
platform:
- x64
environment:
APP_ENV: test
APP_SECRET: a448d1dfcaa563fce56c2fd9981f662b
MAILER_URL: null://localhost
SULU_ADMIN_EMAIL:
PHPCR_TRANSPORT: doctrinedbal
DATABASE_URL: mysql://root:[email protected]/sulu_test?serverVersion=5.7
DATABASE_CHARSET: utf8mb4
DATABASE_COLLATE: utf8mb4_unicode_ci
SYMFONY_DEPRECATIONS_HELPER: weak
MYSQL_VERSION: 8.0.17
NODEJS_VERSION: "12"
matrix:
- PHP_VERSION: 7.2.5
hosts:
localhost: 127.0.0.1
init:
- SET PATH=C:\tools\php;%PATH%
cache:
- '%APPDATA%\Composer'
- '%LOCALAPPDATA%\Composer'
- jackrabbit-standalone-%JACKRABBIT_VERSION%.jar
- C:\tools\php -> appveyor.yml
- C:\tools\composer.phar -> appveyor.yml
install:
- ps: Set-Service wuauserv -StartupType Manual
- ps: Install-Product node $env:NODEJS_VERSION
- choco install mysql --version %MYSQL_VERSION%
- cd C:\tools\mysql\current\bin
- mysql -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';"
- IF NOT EXIST C:\tools\php (
choco install --yes --allow-empty-checksums php --version %PHP_VERSION% --params '/InstallDir:C:\tools\php'
)
- cd C:\tools\php
- ps: cat php.ini-production | %{$_ -replace "memory_limit = 128M","memory_limit = -1"} | Out-File -Encoding "Default" php.ini
- echo date.timezone="UTC" >> php.ini
- echo extension_dir=ext >> php.ini
- echo extension=php_curl.dll >> php.ini
- echo extension=php_openssl.dll >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_gd2.dll >> php.ini
- echo extension=php_intl.dll >> php.ini
- echo extension=php_pdo_mysql.dll >> php.ini
- echo extension=php_pdo_sqlite.dll >> php.ini
- echo extension=php_fileinfo.dll >> php.ini
# install composer
- IF NOT EXIST C:\tools\composer.phar (
cd C:\tools
&& appveyor DownloadFile https://getcomposer.org/download/1.10.7/composer.phar
)
- php -dmemory_limit=-1 C:\tools\composer.phar self-update
before_test:
- php -dmemory_limit=-1 C:\tools\composer.phar --version
- cd %APPVEYOR_BUILD_FOLDER%
- IF "%SULU_PHPCR_TRANSPORT%" == "jackrabbit" (
php -dmemory_limit=-1 C:\tools\composer.phar require jackalope/jackalope-jackrabbit:~1.2 --no-update --no-interaction
)
- php -dmemory_limit=-1 C:\tools\composer.phar update --no-interaction --no-progress --prefer-dist --no-ansi
test_script:
- cd %APPVEYOR_BUILD_FOLDER%
- php bin/runtests -i -a
- npm install
- npm run build