@@ -12,6 +12,10 @@ if /i "%APPVEYOR_REPO_BRANCH:~0,4%" equ "php-" (
12
12
set STABILITY = staging
13
13
)
14
14
set DEPS_DIR = %PHP_BUILD_CACHE_BASE_DIR% \deps-%BRANCH% -%PHP_SDK_VC% -%PHP_SDK_ARCH%
15
+ if not exist " %DEPS_DIR% " (
16
+ echo " %DEPS_DIR% " doesn't exist
17
+ exit /b 3
18
+ )
15
19
16
20
rem setup MySQL related exts
17
21
set MYSQL_PWD = Password12!
@@ -25,6 +29,7 @@ set PDO_MYSQL_TEST_HOST=%MYSQL_TEST_HOST%
25
29
set PDO_MYSQL_TEST_PORT = %MYSQL_TEST_PORT%
26
30
set PDO_MYSQL_TEST_DSN = mysql:host=%PDO_MYSQL_TEST_HOST% port=%PDO_MYSQL_TEST_PORT% dbname=test user=%PDO_MYSQL_TEST_USER% password=%MYSQL_PW%
27
31
" C:\Program Files\MySql\MySQL Server 5.7\bin\mysql.exe" --user=%MYSQL_TEST_USER% -e " CREATE DATABASE IF NOT EXISTS test"
32
+ if %errorlevel% neq 0 exit /b 3
28
33
29
34
rem setup PostgreSQL related exts
30
35
set PGUSER = postgres
@@ -33,12 +38,15 @@ rem set PGSQL_TEST_CONNSTR=host=127.0.0.1 dbname=test port=5432 user=postgres pa
33
38
echo ^ < ?php $conn_str = " host=127.0.0.1 dbname=test port=5432 user=%PGUSER% password=%PGPASSWORD% " ; ?^ > >> " ./ext/pgsql/tests/config.inc"
34
39
set PDO_PGSQL_TEST_DSN = pgsql:host=127.0.0.1 port=5432 dbname=test user=%PGUSER% password=%PGPASSWORD%
35
40
" C:\Program Files\PostgreSQL\9.5\bin\createdb.exe" test
41
+ if %errorlevel% neq 0 exit /b 3
36
42
37
43
rem prepare for ext/openssl
38
44
if " %APPVEYOR% " equ " True" rmdir /s /q C:\OpenSSL-Win32 > NUL 2 > NUL
39
45
if " %APPVEYOR% " equ " True" rmdir /s /q C:\OpenSSL-Win64 > NUL 2 > NUL
40
46
mkdir c:\usr\local\ssl
47
+ if %errorlevel% neq 0 exit /b 3
41
48
copy %DEPS_DIR% \template\ssl\openssl.cnf c:\usr\local\ssl
49
+ if %errorlevel% neq 0 exit /b 3
42
50
set OPENSSL_CONF = c:\usr\local\ssl\openssl.cnf
43
51
rem set OPENSSL_CONF=
44
52
rem set SSLEAY_CONF=
@@ -48,9 +56,13 @@ if "%OPCACHE%" equ "1" set OPCACHE_OPTS=-d opcache.enabled=1 -d opcache.enable_c
48
56
49
57
rem prepare for enchant
50
58
mkdir c:\enchant_plugins
59
+ if %errorlevel% neq 0 exit /b 3
51
60
copy %DEPS_DIR% \bin\libenchant_ispell.dll c:\enchant_plugins
61
+ if %errorlevel% neq 0 exit /b 3
52
62
copy %DEPS_DIR% \bin\libenchant_myspell.dll c:\enchant_plugins
63
+ if %errorlevel% neq 0 exit /b 3
53
64
reg add HKEY_CURRENT_USER\SOFTWARE\Enchant\Config /v Module_Dir /t REG_SZ /d c:\enchant_plugins
65
+ if %errorlevel% neq 0 exit /b 3
54
66
set PHP_BUILD_CACHE_ENCHANT_DICT_DIR = %PHP_BUILD_CACHE_BASE_DIR% \enchant_dict
55
67
if not exist " %PHP_BUILD_CACHE_ENCHANT_DICT_DIR% " (
56
68
echo Creating %PHP_BUILD_CACHE_ENCHANT_DICT_DIR%
0 commit comments