This repository has been archived by the owner on Dec 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
49 lines (44 loc) · 2.02 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
build: false
clone_depth: 1
clone_folder: c:\projects\asynctweetsbundle
# https://github.com/travis-ci/travis-ci/issues/3005#issuecomment-71320541
skip_commits:
message: /.*\[skip appveyor\].*/
cache:
- '%LOCALAPPDATA%\Composer\files'
- c:\projects\asynctweetsbundle\composer.phar
init:
- SET PATH=c:\php;%PATH%
- SET COMPOSER_NO_INTERACTION=1
- SET ANSICON=121x90 (121x90)
- REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v DelayedExpansion /t REG_DWORD /d 1 /f
install:
- mkdir c:\php && cd c:\php
- curl -fsS -o php.zip https://windows.php.net/downloads/releases/archives/php-7.2.12-Win32-VC15-x64.zip
- 7z x php.zip -y >nul
- del /Q *.zip
- copy /Y php.ini-development php.ini
- echo memory_limit=-1 >> php.ini
- echo max_execution_time=600 >> php.ini
- echo date.timezone="UTC" >> php.ini
- echo extension_dir=ext >> php.ini
- echo zend_extension=php_opcache.dll >> php.ini
- echo opcache.enable_cli=1 >> php.ini
- echo extension=php_openssl.dll >> php.ini
- echo apc.enable_cli=1 >> php.ini
- echo extension=php_intl.dll >> php.ini
- echo extension=php_mbstring.dll >> php.ini
- echo extension=php_fileinfo.dll >> php.ini
- echo extension=php_pdo_sqlite.dll >> php.ini
- echo extension=php_curl.dll >> php.ini
- echo curl.cainfo=c:\php\cacert.pem >> php.ini
- cd c:\projects\asynctweetsbundle
- IF NOT EXIST composer.phar (appveyor DownloadFile https://github.com/composer/composer/releases/download/1.7.1/composer.phar)
- php composer.phar self-update -vvv
- php composer.phar require symfony/config:^4.4 symfony/form:^4.4 symfony/framework-bundle:^4.4 symfony/templating:^4.4 symfony/security-csrf:^4.4 symfony/var-dumper:^4.4 --no-progress --ansi
test_script:
- cd c:\projects\asynctweetsbundle
- vendor/bin/phpspec run --format=pretty || SET X=!errorlevel!
- vendor/bin/phpunit --testdox --colors=never || SET X=!errorlevel!
- vendor/bin/behat --strict -vv || SET X=!errorlevel!
- exit %X%