com php-src: Re-enable ODBC tests: .appveyor.yml appveyor/test _task.bat
| From: | Anatol Belski | Date: | Thu, 04 Jan 2018 16:31:59 +0000 |
| Subject: | com php-src: Re-enable ODBC tests: .appveyor.yml appveyor/test _task.bat | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100796@lists.php.net to get a copy of this message | ||
Commit: 67872afefd02b69fdb8f3e3fc9a38f97c259e529
Author: Anatol Belski <ab@php.net> Thu, 4 Jan 2018 17:31:59 +0100
Parents: 205f527379246fa575742286156c5ea67a569804
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=67872afefd02b69fdb8f3e3fc9a38f97c259e529
Log:
Re-enable ODBC tests
Changed paths:
M .appveyor.yml
M appveyor/test_task.bat
Diff:
diff --git a/.appveyor.yml b/.appveyor.yml
index 8b7b69a..b2f6484 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -44,6 +44,7 @@ services:
# the setup scripts have to be touched, once some other db version is used
- mysql
- postgresql96
+ - mssql2017
platform:
- x64
diff --git a/appveyor/test_task.bat b/appveyor/test_task.bat
index 1ffdc3c..2592da5 100644
--- a/appveyor/test_task.bat
+++ b/appveyor/test_task.bat
@@ -40,6 +40,12 @@ set PDO_PGSQL_TEST_DSN=pgsql:host=127.0.0.1 port=5432 dbname=test user=%PGUSER%
"C:\Program Files\PostgreSQL\9.6\bin\createdb.exe" test
if %errorlevel% neq 0 exit /b 3
+rem setup ODBC related exts
+set ODBC_TEST_USER=sa
+set ODBC_TEST_PASS=Password12!
+set ODBC_TEST_DSN=Driver={ODBC Driver 13 for SQL
Server};Server=(local)\SQL2017;Database=master;uid=%ODBC_TEST_USER%;pwd=%ODBC_TEST_PASS%
+set PDOTEST_DSN=odbc:%ODBC_TEST_DSN%
+
rem prepare for ext/openssl
if "%APPVEYOR%" equ "True" rmdir /s /q C:\OpenSSL-Win32 >NUL 2>NUL
if "%APPVEYOR%" equ "True" rmdir /s /q C:\OpenSSL-Win64 >NUL 2>NUL