Skip to content

Commit b2d1d1b

Browse files
committed
Run PDO_Firebird tests on AppVeyor CI
Closes GH-8666.
1 parent 7601068 commit b2d1d1b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

appveyor/test_task.bat

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ set ODBC_TEST_PASS=Password12!
4646
set ODBC_TEST_DSN=Driver={ODBC Driver 13 for SQL Server};Server=(local)\SQL2017;Database=master;uid=%ODBC_TEST_USER%;pwd=%ODBC_TEST_PASS%
4747
set PDOTEST_DSN=odbc:%ODBC_TEST_DSN%
4848

49+
rem setup Firebird related exts
50+
curl -sLo Firebird.zip https://github.com/FirebirdSQL/firebird/releases/download/v3.0.9/Firebird-3.0.9.33560-0_x64.zip
51+
7z x -oC:\Firebird Firebird.zip
52+
echo create database 'C:\test.fdb' user 'SYSDBA' password 'phpfi';> C:\Firebird\setup.sql
53+
C:\Firebird\instsvc.exe install -n TestInstance
54+
C:\Firebird\isql -q -i C:\Firebird\setup.sql
55+
C:\Firebird\instsvc.exe start -n TestInstance
56+
if %errorlevel% neq 0 exit /b 3
57+
path C:\Firebird;%PATH%
58+
set PDO_FIREBIRD_TEST_DSN=firebird:dbname=C:\test.fdb
59+
4960
rem prepare for ext/openssl
5061
if "%APPVEYOR%" equ "True" rmdir /s /q C:\OpenSSL-Win32 >NUL 2>NUL
5162
if "%APPVEYOR%" equ "True" rmdir /s /q C:\OpenSSL-Win64 >NUL 2>NUL
@@ -111,7 +122,7 @@ rem work-around for some spawned PHP processes requiring OpenSSL
111122
echo extension=php_openssl.dll >> %PHP_BUILD_DIR%\php.ini
112123

113124
rem remove ext dlls for which tests are not supported
114-
for %%i in (ldap oci8_12c pdo_firebird pdo_oci) do (
125+
for %%i in (ldap oci8_12c pdo_oci) do (
115126
del %PHP_BUILD_DIR%\php_%%i.dll
116127
)
117128

0 commit comments

Comments
 (0)