forked from symfony/maker-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
63 lines (57 loc) · 2.47 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
build: false
platform:
- x64
clone_folder: c:\projects\maker-bundle
cache:
- '%LOCALAPPDATA%\Composer\files -> composer.lock'
- composer.phar
# Cache chocolatey packages
- C:\ProgramData\chocolatey\bin -> .appveyor.yml
- C:\ProgramData\chocolatey\lib -> .appveyor.yml
# Cache php install
- C:\tools\php -> .appveyor.yml
- .phpunit -> phpunit
- C:\projects\maker-bundle\vendor -> composer.json
services:
- mysql
init:
- SET PATH=C:\Program Files\OpenSSL;C:\tools\php;%PATH%
- SET COMPOSER_NO_INTERACTION=1
- SET PHP=0 # This var is connected to PHP install cache
- SET ANSICON=121x90 (121x90)
environment:
TEST_DATABASE_DSN: mysql://root:Password12!@127.0.0.1:3306/test_maker
matrix:
- dependencies: lowest
php_ver_target: 7.1.3
- dependencies: highest
php_ver_target: 7.2.3
install:
- ps: Set-Service wuauserv -StartupType Manual
- IF EXIST C:\tools\php (SET PHP=1) # Checks for the PHP install being cached
- IF %PHP%==0 cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y php --version %php_ver_target%
- cd C:\tools\php
- IF %PHP%==0 copy php.ini-development php.ini /Y
- IF %PHP%==0 echo memory_limit=-1 >> php.ini
- IF %PHP%==0 echo serialize_precision=14 >> php.ini
- IF %PHP%==0 echo max_execution_time=1200 >> php.ini
- IF %PHP%==0 echo date.timezone="UTC" >> php.ini
- IF %PHP%==0 echo extension_dir=ext >> php.ini
- IF %PHP%==0 echo zend_extension=php_opcache.dll >> php.ini
- IF %PHP%==0 echo opcache.enable_cli=1 >> php.ini
- IF %PHP%==0 echo extension=php_openssl.dll >> php.ini
- IF %PHP%==0 echo extension=php_mbstring.dll >> php.ini
- IF %PHP%==0 echo extension=php_fileinfo.dll >> php.ini
- IF %PHP%==0 echo extension=php_mysqli.dll >> php.ini
- IF %PHP%==0 echo extension=php_curl.dll >> php.ini
- IF %PHP%==0 echo extension=php_pdo_mysql.dll >> php.ini
- IF %PHP%==0 echo @php %%~dp0composer.phar %%* > composer.bat
- appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
- composer global require hirak/prestissimo --no-progress
- cd C:\projects\maker-bundle
- IF %dependencies%==lowest appveyor-retry composer update --prefer-lowest --no-progress --no-suggest --ansi
- IF %dependencies%==highest appveyor-retry composer update --no-progress --no-suggest --ansi
- vendor/bin/simple-phpunit install
test_script:
- cd C:\projects\maker-bundle
- vendor/bin/simple-phpunit