1
1
@ echo off
2
2
3
- if /i " %APPVEYOR%% GITHUB_ACTIONS% " neq " True" (
3
+ if /i " %GITHUB_ACTIONS% " neq " True" (
4
4
echo for CI only
5
5
exit /b 3
6
6
)
@@ -32,11 +32,7 @@ set PDO_MYSQL_TEST_PASS=%MYSQL_PWD%
32
32
set PDO_MYSQL_TEST_HOST = %MYSQL_TEST_HOST%
33
33
set PDO_MYSQL_TEST_PORT = %MYSQL_TEST_PORT%
34
34
set PDO_MYSQL_TEST_DSN = mysql:host=%PDO_MYSQL_TEST_HOST% ;port=%PDO_MYSQL_TEST_PORT% ;dbname=test
35
- if /i " %APPVEYOR% " equ " True" (
36
- set TMP_MYSQL_BIN = %ProgramFiles% \MySql\MySQL Server 5.7\bin
37
- ) else (
38
- set TMP_MYSQL_BIN = C:\mysql\bin
39
- )
35
+ set TMP_MYSQL_BIN = C:\mysql\bin
40
36
" %TMP_MYSQL_BIN% \mysql.exe" --host=%PDO_MYSQL_TEST_HOST% --port=%MYSQL_TEST_PORT% --user=%MYSQL_TEST_USER% --password=%MYSQL_TEST_PASSWD% -e " CREATE DATABASE IF NOT EXISTS test"
41
37
if %errorlevel% neq 0 exit /b 3
42
38
@@ -46,22 +42,14 @@ set PGPASSWORD=Password12!
46
42
rem set PGSQL_TEST_CONNSTR=host=127.0.0.1 dbname=test port=5432 user=postgres password=Password12!
47
43
echo ^ < ?php $conn_str = " host=127.0.0.1 dbname=test port=5432 user=%PGUSER% password=%PGPASSWORD% " ; ?^ > >> " ./ext/pgsql/tests/config.inc"
48
44
set PDO_PGSQL_TEST_DSN = pgsql:host=127.0.0.1 port=5432 dbname=test user=%PGUSER% password=%PGPASSWORD%
49
- if /i " %APPVEYOR% " equ " True" (
50
- set TMP_POSTGRESQL_BIN = %ProgramFiles% \PostgreSQL\10\bin
51
- ) else (
52
- set TMP_POSTGRESQL_BIN = %PGBIN%
53
- )
45
+ set TMP_POSTGRESQL_BIN = %PGBIN%
54
46
" %TMP_POSTGRESQL_BIN% \createdb.exe" test
55
47
if %errorlevel% neq 0 exit /b 3
56
48
57
49
rem setup ODBC related exts
58
50
set ODBC_TEST_USER = sa
59
51
set ODBC_TEST_PASS = Password12!
60
- if /i " %APPVEYOR% " equ " True" (
61
- set ODBC_TEST_DSN = Driver={ODBC Driver 13 for SQL Server};Server=^ (local^ )\SQL2017;Database=master;uid=%ODBC_TEST_USER% ;pwd=%ODBC_TEST_PASS%
62
- ) else (
63
- set ODBC_TEST_DSN = Driver={ODBC Driver 17 for SQL Server};Server=^ (local^ )\SQLEXPRESS;Database=master;uid=%ODBC_TEST_USER% ;pwd=%ODBC_TEST_PASS%
64
- )
52
+ set ODBC_TEST_DSN = Driver={ODBC Driver 17 for SQL Server};Server=^ (local^ )\SQLEXPRESS;Database=master;uid=%ODBC_TEST_USER% ;pwd=%ODBC_TEST_PASS%
65
53
set PDOTEST_DSN = odbc:%ODBC_TEST_DSN%
66
54
67
55
rem setup Firebird related exts
@@ -159,11 +147,4 @@ if %EXIT_CODE% GEQ 1 (
159
147
git diff > bless_tests.patch
160
148
)
161
149
162
- if /i " %APPVEYOR% " equ " True" (
163
- appveyor PushArtifact %TEST_PHP_JUNIT%
164
- if %EXIT_CODE% GEQ 1 (
165
- appveyor PushArtifact bless_tests.patch
166
- )
167
- )
168
-
169
150
exit /b %EXIT_CODE%
0 commit comments