From 6b2a46bcb80185748040da33bff95189f3618435 Mon Sep 17 00:00:00 2001 From: Mira Paulik Date: Wed, 4 Nov 2015 17:42:23 +0100 Subject: [PATCH] appveyor: testing with SQL Server 2012 & 2014 --- appveyor.yml | 6 +++++ tests/databases.appveyor.ini | 45 ++++++++++++++++++++++++++++++++++++ tests/php-win.ini | 3 ++- 3 files changed, 53 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 2e828eb..af8c496 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,6 +6,8 @@ cache: clone_folder: c:\projects\dibi services: + - mssql2012sp1 + - mssql2014 - mysql init: @@ -21,6 +23,10 @@ install: - 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 appveyor DownloadFile https://files.nette.org/misc/php-sqlsrv.zip + - IF %PHP%==1 7z x php-sqlsrv.zip >nul + - IF %PHP%==1 copy SQLSRV\php_sqlsrv_56_ts.dll ext\php_sqlsrv_ts.dll + - IF %PHP%==1 copy SQLSRV\php_pdo_sqlsrv_56_ts.dll ext\php_pdo_sqlsrv_ts.dll - IF %PHP%==1 del /Q *.zip - cd c:\projects\dibi diff --git a/tests/databases.appveyor.ini b/tests/databases.appveyor.ini index 0175103..28a311f 100644 --- a/tests/databases.appveyor.ini +++ b/tests/databases.appveyor.ini @@ -42,3 +42,48 @@ dsn = "odbc:Driver={Microsoft Access Driver (*.mdb)};Dbq=data/odbc.mdb" username = password = system = odbc + +;[sqlsrv 2008] +;driver = sqlsrv +;host = "(local)\SQL2008R2SP2" +;database = master +;username = sa +;password = "Password12!" +;system = sqlsrv + +;[sqlsrv 2008-pdo] +;driver = pdo +;dsn = "sqlsrv:Server=(local)\SQL2008R2SP2;Database=master" +;username = sa +;password = "Password12!" +;system = sqlsrv + +[sqlsrv 2012] +driver = sqlsrv +host = "(local)\SQL2012SP1" +database = master +username = sa +password = "Password12!" +system = sqlsrv + +;[sqlsrv 2012-pdo] +;driver = pdo +;dsn = "sqlsrv:Server=(local)\SQL2012SP1;Database=master" +;username = sa +;password = "Password12!" +;system = sqlsrv + +[sqlsrv 2014] +driver = sqlsrv +host = "(local)\SQL2014" +database = master +username = sa +password = "Password12!" +system = sqlsrv + +;[sqlsrv 2014-pdo] +;driver = pdo +;dsn = "sqlsrv:Server=(local)\SQL2014;Database=master" +;username = sa +;password = "Password12!" +;system = sqlsrv diff --git a/tests/php-win.ini b/tests/php-win.ini index 28f9513..4dfa6b7 100644 --- a/tests/php-win.ini +++ b/tests/php-win.ini @@ -14,4 +14,5 @@ extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll extension=php_sqlite3.dll -;extension=php_sqlsrv_ts.dll +extension=php_sqlsrv_ts.dll +extension=php_pdo_sqlsrv_ts.dll