@@ -62,10 +62,8 @@ rem set OPENSSL_CONF=%OPENSSLDIR%\openssl.cnf
62
62
set OPENSSL_CONF =
63
63
rem set SSLEAY_CONF=
64
64
65
- rem prepare for OPcache
65
+ rem prepare for Opcache
66
66
if " %OPCACHE% " equ " 1" set OPCACHE_OPTS = -d opcache.enable=1 -d opcache.enable_cli=1 -d opcache.protect_memory=1 -d opcache.jit_buffer_size=16M
67
- rem work-around for failing to dl(mysqli) with OPcache (https://github.com/php/php-src/issues/8508)
68
- if " %OPCACHE% " equ " 1" set OPCACHE_OPTS = %OPCACHE_OPTS% -d extension=mysqli
69
67
70
68
rem prepare for enchant
71
69
mkdir C:\usr\local\lib\enchant-2
@@ -91,39 +89,19 @@ if not exist "%PHP_BUILD_CACHE_ENCHANT_DICT_DIR%\en_US.aff" (
91
89
mkdir %LOCALAPPDATA% \enchant\hunspell
92
90
copy %PHP_BUILD_CACHE_ENCHANT_DICT_DIR% \* %LOCALAPPDATA% \enchant\hunspell
93
91
94
- set PHP_BUILD_DIR = %PHP_BUILD_OBJ_DIR% \Release
95
- if " %THREAD_SAFE% " equ " 1" set PHP_BUILD_DIR = %PHP_BUILD_DIR% _TS
96
-
97
- mkdir %PHP_BUILD_DIR% \test_file_cache
98
- rem generate php.ini
99
- echo extension_dir=%PHP_BUILD_DIR% > %PHP_BUILD_DIR% \php.ini
100
- echo opcache.file_cache=%PHP_BUILD_DIR% \test_file_cache >> %PHP_BUILD_DIR% \php.ini
101
- if " %OPCACHE% " equ " 1" echo zend_extension=php_opcache.dll >> %PHP_BUILD_DIR% \php.ini
102
- rem work-around for some spawned PHP processes requiring OpenSSL
103
- echo extension=php_openssl.dll >> %PHP_BUILD_DIR% \php.ini
104
-
105
- rem remove ext dlls for which tests are not supported
106
- for %%i in (imap ldap oci8_12c pdo_firebird pdo_oci snmp) do (
107
- del %PHP_BUILD_DIR% \php_%%i .dll
108
- )
109
-
110
- set TEST_PHPDBG_EXECUTABLE = %PHP_BUILD_DIR% \phpdbg.exe
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
111
95
112
96
mkdir c:\tests_tmp
113
97
114
98
set TEST_PHP_JUNIT = c:\junit.out.xml
115
99
116
100
cd " %APPVEYOR_BUILD_FOLDER% "
117
- nmake test TESTS=" %OPCACHE_OPTS% -q --offline --show-diff --show-slow 1000 --set-timeout 120 --temp-source c:\tests_tmp --temp-target c:\tests_tmp --bless %PARALLEL% "
101
+ nmake test TESTS=" %OPCACHE_OPTS% -q --offline --show-diff --show-slow 1000 --set-timeout 120 --temp-source c:\tests_tmp --temp-target c:\tests_tmp %PARALLEL% "
118
102
119
103
set EXIT_CODE = %errorlevel%
120
104
121
105
appveyor PushArtifact %TEST_PHP_JUNIT%
122
106
123
- if %EXIT_CODE% GEQ 1 (
124
- git checkout ext\pgsql\tests\config.inc
125
- git diff > bless_tests.patch
126
- appveyor PushArtifact bless_tests.patch
127
- )
128
-
129
107
exit /b %EXIT_CODE%
0 commit comments