mirror of
https://github.com/dg/dibi.git
synced 2025-08-04 13:17:58 +02:00
added appveyor.yml (thanks @mhujer)
This commit is contained in:
39
appveyor.yml
Normal file
39
appveyor.yml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
build: off
|
||||||
|
cache:
|
||||||
|
- c:\php -> appveyor.yml
|
||||||
|
- '%LOCALAPPDATA%\Composer\files -> appveyor.yml'
|
||||||
|
|
||||||
|
clone_folder: c:\projects\dibi
|
||||||
|
|
||||||
|
services:
|
||||||
|
- mysql
|
||||||
|
|
||||||
|
init:
|
||||||
|
- SET PATH=c:\php;%PATH%
|
||||||
|
- SET PHP=1
|
||||||
|
- SET ANSICON=121x90 (121x90)
|
||||||
|
|
||||||
|
install:
|
||||||
|
# Install PHP
|
||||||
|
- IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php)
|
||||||
|
- IF %PHP%==1 cd c:\php
|
||||||
|
- IF %PHP%==1 appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-5.6.14-Win32-VC11-x86.zip
|
||||||
|
- IF %PHP%==1 7z x php-5.6.14-Win32-VC11-x86.zip >nul
|
||||||
|
- IF %PHP%==1 echo extension_dir=ext >> php.ini
|
||||||
|
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
|
||||||
|
- IF %PHP%==1 del /Q *.zip
|
||||||
|
- cd c:\projects\dibi
|
||||||
|
|
||||||
|
# Install Nette Tester
|
||||||
|
- 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:
|
||||||
|
- vendor\bin\tester tests -s -p php -c tests\php-win.ini
|
||||||
|
|
||||||
|
on_failure:
|
||||||
|
# Print *.actual content
|
||||||
|
- type tests\dibi\output\*.actual
|
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
[](https://packagist.org/packages/dibi/dibi)
|
[](https://packagist.org/packages/dibi/dibi)
|
||||||
[](https://travis-ci.org/dg/dibi)
|
[](https://travis-ci.org/dg/dibi)
|
||||||
|
[](https://ci.appveyor.com/project/dg/dibi/branch/master)
|
||||||
[](https://github.com/dg/dibi/releases)
|
[](https://github.com/dg/dibi/releases)
|
||||||
[](https://github.com/dg/dibi/blob/master/license.md)
|
[](https://github.com/dg/dibi/blob/master/license.md)
|
||||||
|
|
||||||
|
44
tests/databases.appveyor.ini
Normal file
44
tests/databases.appveyor.ini
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
[sqlite] ; default
|
||||||
|
driver = sqlite3
|
||||||
|
database = :memory:
|
||||||
|
system = sqlite
|
||||||
|
|
||||||
|
[sqlite pdo]
|
||||||
|
driver = pdo
|
||||||
|
dsn = "sqlite::memory:"
|
||||||
|
system = sqlite
|
||||||
|
|
||||||
|
[mysql]
|
||||||
|
driver = mysql
|
||||||
|
host = 127.0.0.1
|
||||||
|
username = root
|
||||||
|
password = "Password12!"
|
||||||
|
charset = utf8
|
||||||
|
system = mysql
|
||||||
|
|
||||||
|
[mysql improved]
|
||||||
|
driver = mysqli
|
||||||
|
host = 127.0.0.1
|
||||||
|
username = root
|
||||||
|
password = "Password12!"
|
||||||
|
charset = utf8
|
||||||
|
system = mysql
|
||||||
|
|
||||||
|
[mysql pdo]
|
||||||
|
driver = pdo
|
||||||
|
dsn = "mysql:host=127.0.0.1"
|
||||||
|
username = root
|
||||||
|
password = "Password12!"
|
||||||
|
system = mysql
|
||||||
|
|
||||||
|
[odbc]
|
||||||
|
driver = odbc
|
||||||
|
dsn = "Driver={Microsoft Access Driver (*.mdb)};Dbq=data/odbc.mdb"
|
||||||
|
system = odbc
|
||||||
|
|
||||||
|
[odbc pdo]
|
||||||
|
driver = pdo
|
||||||
|
dsn = "odbc:Driver={Microsoft Access Driver (*.mdb)};Dbq=data/odbc.mdb"
|
||||||
|
username =
|
||||||
|
password =
|
||||||
|
system = odbc
|
Reference in New Issue
Block a user