1
0
mirror of https://github.com/dg/dibi.git synced 2025-01-16 21:58:36 +01:00
php-dibi/appveyor.yml

56 lines
1.8 KiB
YAML
Raw Permalink Normal View History

2015-11-04 03:57:52 +01:00
build: off
cache:
2022-09-06 04:30:49 +02:00
- c:\php -> appveyor.yml
2015-11-04 03:57:52 +01:00
- '%LOCALAPPDATA%\Composer\files -> appveyor.yml'
clone_folder: c:\projects\dibi
environment:
MYSQL_PWD: Password12!
2015-11-04 03:57:52 +01:00
services:
- mssql2012sp1
# - mssql2014
2015-11-04 03:57:52 +01:00
- mysql
init:
- SET PATH=c:\php;c:\Program Files\MySQL\MySQL Server 5.7\bin;%PATH%
2015-11-04 03:57:52 +01:00
- SET ANSICON=121x90 (121x90)
install:
2022-09-06 04:30:49 +02:00
# Install PHP 8.0
- IF EXIST c:\php (SET PHP=0) ELSE (SET PHP=1)
- IF %PHP%==1 mkdir c:\php
- IF %PHP%==1 cd c:\php
- IF %PHP%==1 curl https://windows.php.net/downloads/releases/archives/php-8.0.1-Win32-vs16-x64.zip --output php.zip
- IF %PHP%==1 7z x php.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
2022-09-06 04:30:49 +02:00
- IF %PHP%==1 curl https://github.com/microsoft/msphpsql/releases/download/v5.9.0/Windows-8.0.zip -L --output sqlsrv.zip
2021-03-10 16:45:54 +01:00
- IF %PHP%==1 7z x sqlsrv.zip >nul
2022-09-06 04:30:49 +02:00
- IF %PHP%==1 copy Windows-8.0\x64\php_sqlsrv_80_ts.dll ext\php_sqlsrv_ts.dll
2016-03-18 13:55:07 +01:00
- IF %PHP%==1 del /Q *.zip
2015-11-04 03:57:52 +01:00
2018-03-23 14:37:17 +01:00
# Install Microsoft Access Database Engine x64
- IF %PHP%==1 curl https://download.microsoft.com/download/2/4/3/24375141-E08D-4803-AB0E-10F2E3A07AAA/AccessDatabaseEngine_X64.exe --output AccessDatabaseEngine_X64.exe
- cmd /c start /wait AccessDatabaseEngine_X64.exe /passive
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
before_test:
# Create MySQL database
- mysql --user=root -e "CREATE DATABASE dibi_test"
2015-11-04 03:57:52 +01:00
test_script:
2022-09-06 04:30:49 +02:00
- vendor\bin\tester tests -s -p c:\php\php -c tests\php-win.ini
2015-11-04 03:57:52 +01:00
on_failure:
# Print *.actual content
2018-03-23 17:53:13 +01:00
- for /r %%x in (*.actual) do ( type "%%x" )