Skip to content

Commit 0184d14

Browse files
committed
AppVeyor: only load minimal set of exts; don't run unsupported test suites
1 parent 1eaaabc commit 0184d14

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

appveyor/test_task.bat

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,20 @@ if not exist "%PHP_BUILD_CACHE_ENCHANT_DICT_DIR%\en_US.aff" (
8989
mkdir %LOCALAPPDATA%\enchant\hunspell
9090
copy %PHP_BUILD_CACHE_ENCHANT_DICT_DIR%\* %LOCALAPPDATA%\enchant\hunspell
9191

92-
set TEST_PHPDBG_EXECUTABLE=%PHP_BUILD_OBJ_DIR%\Release
93-
if "%THREAD_SAFE%" equ "1" set TEST_PHPDBG_EXECUTABLE=%TEST_PHPDBG_EXECUTABLE%_TS
94-
set TEST_PHPDBG_EXECUTABLE=%TEST_PHPDBG_EXECUTABLE%\phpdbg.exe
92+
set PHP_BUILD_DIR=%PHP_BUILD_OBJ_DIR%\Release
93+
if "%THREAD_SAFE%" equ "1" set PHP_BUILD_DIR=%PHP_BUILD_DIR%_TS
94+
95+
rem overwrite tmp-php.ini
96+
echo extension_dir=%PHP_BUILD_DIR% > %PHP_BUILD_DIR%\tmp-php.ini
97+
echo opcache.file_cache=%PHP_BUILD_DIR%\test_file_cache >> %PHP_BUILD_DIR%\tmp-php.ini
98+
if "%OPCACHE%" equ "1" echo zend_extension=php_opcache.dll >> %PHP_BUILD_DIR%\tmp-php.ini
99+
100+
rem remove ext dlls for which tests are not supported
101+
for %%i in (imap ldap oci8_12c pdo_firebird pdo_oci snmp) do (
102+
del %PHP_BUILD_DIR%\php_%%i.dll
103+
)
104+
105+
set TEST_PHPDBG_EXECUTABLE=%PHP_BUILD_DIR%\phpdbg.exe
95106

96107
mkdir c:\tests_tmp
97108

0 commit comments

Comments
 (0)