1
0
mirror of https://github.com/dg/dibi.git synced 2025-01-17 06:08:19 +01:00
php-dibi/appveyor.yml

45 lines
1.3 KiB
YAML
Raw Normal View History

2015-11-04 03:57:52 +01:00
build: off
cache:
2016-03-18 13:55:07 +01:00
- c:\php7 -> appveyor.yml
2015-11-04 03:57:52 +01:00
- '%LOCALAPPDATA%\Composer\files -> appveyor.yml'
clone_folder: c:\projects\dibi
services:
- mssql2012sp1
# - mssql2014
2015-11-04 03:57:52 +01:00
- mysql
init:
2017-03-08 14:02:10 +01:00
- SET PATH=c:\php7;%PATH%
2015-11-04 03:57:52 +01:00
- SET ANSICON=121x90 (121x90)
install:
2017-03-08 14:02:10 +01:00
# Install PHP 7.1
2016-03-18 13:55:07 +01:00
- IF EXIST c:\php7 (SET PHP=0) ELSE (SET PHP=1)
- IF %PHP%==1 mkdir c:\php7
- IF %PHP%==1 cd c:\php7
2017-03-08 14:02:10 +01:00
- IF %PHP%==1 appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-7.1.5-Win32-VC14-x86.zip
- IF %PHP%==1 7z x php-7.1.5-Win32-VC14-x86.zip >nul
2016-03-18 13:55:07 +01:00
- IF %PHP%==1 echo extension_dir=ext >> php.ini
2017-03-08 14:02:10 +01:00
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
2016-03-18 13:55:07 +01:00
- IF %PHP%==1 appveyor DownloadFile https://files.nette.org/misc/php-sqlsrv.zip
- IF %PHP%==1 7z x php-sqlsrv.zip >nul
2017-03-08 14:02:10 +01:00
- IF %PHP%==1 copy SQLSRV\php_sqlsrv_71_ts.dll ext\php_sqlsrv_71_ts.dll
2016-03-18 13:55:07 +01:00
- IF %PHP%==1 del /Q *.zip
2015-11-04 03:57:52 +01:00
# Install Nette Tester
2016-03-18 13:55:07 +01:00
- cd c:\projects\dibi
2015-11-04 03:57:52 +01:00
- appveyor DownloadFile https://getcomposer.org/composer.phar
- php composer.phar install --prefer-dist --no-interaction --no-progress
# Create databases.ini
- copy tests\databases.appveyor.ini tests\databases.ini
test_script:
2017-03-08 14:02:10 +01:00
- vendor\bin\tester tests -s -p c:\php7\php -c tests\php-win.ini
2015-11-04 03:57:52 +01:00
on_failure:
# Print *.actual content
- type tests\dibi\output\*.actual