renamed user and password
This commit is contained in:
parent
c6be43ad38
commit
ad466c35db
|
@ -70,14 +70,14 @@ RUN phpize && ./configure LDFLAGS="-lgcov" CXXFLAGS="-O0 --coverage" && make &&
|
|||
WORKDIR $PHPSQLDIR/test/pdo_sqlsrv
|
||||
RUN sed -i -e 's/TARGET_SERVER/sql/g' MsSetup.inc
|
||||
RUN sed -i -e 's/TARGET_DATABASE/msphpsql_pdosqlsrv/g' MsSetup.inc
|
||||
RUN sed -i -e 's/USERNAME/'"$TEST_PHP_SQL_UID"'/g' MsSetup.inc
|
||||
RUN sed -i -e 's/PASSWORD/'"$TEST_PHP_SQL_PWD"'/g' MsSetup.inc
|
||||
RUN sed -i -e 's/TARGET_USERNAME/'"$TEST_PHP_SQL_UID"'/g' MsSetup.inc
|
||||
RUN sed -i -e 's/TARGET_PASSWORD/'"$TEST_PHP_SQL_PWD"'/g' MsSetup.inc
|
||||
|
||||
WORKDIR $PHPSQLDIR/test/sqlsrv
|
||||
RUN sed -i -e 's/TARGET_SERVER/sql/g' MsSetup.inc
|
||||
RUN sed -i -e 's/TARGET_DATABASE/msphpsql_sqlsrv/g' MsSetup.inc
|
||||
RUN sed -i -e 's/USERNAME/'"$TEST_PHP_SQL_UID"'/g' MsSetup.inc
|
||||
RUN sed -i -e 's/PASSWORD/'"$TEST_PHP_SQL_PWD"'/g' MsSetup.inc
|
||||
RUN sed -i -e 's/TARGET_USERNAME/'"$TEST_PHP_SQL_UID"'/g' MsSetup.inc
|
||||
RUN sed -i -e 's/TARGET_PASSWORD/'"$TEST_PHP_SQL_PWD"'/g' MsSetup.inc
|
||||
|
||||
ENV REPORT_EXIT_STATUS 1
|
||||
ENV TEST_PHP_EXECUTABLE /usr/bin/php
|
||||
|
|
|
@ -122,9 +122,9 @@ install:
|
|||
- 7z x -y php-sdk-binary-tools-20110915.zip -o%PHP_SDK%
|
||||
- 7z x -y php.zip -o%PHP_SDK_DIR%
|
||||
- echo update SQL connection string
|
||||
- ps: (Get-Content ${env:APPVEYOR_BUILD_FOLDER}\test\pdo_sqlsrv\MsSetup.inc) | ForEach-Object { $_ -replace "TARGET_SERVER", ${env:TEST_PHP_SQL_SERVER} -replace "TARGET_DATABASE", ${env:PDOSQLSRV_DBNAME} -replace "USERNAME", ${env:TEST_PHP_SQL_UID} -replace "PASSWORD", ${env:TEST_PHP_SQL_PWD} } | Set-Content ${env:APPVEYOR_BUILD_FOLDER}\test\pdo_sqlsrv\MsSetup.inc
|
||||
- ps: (Get-Content ${env:APPVEYOR_BUILD_FOLDER}\test\pdo_sqlsrv\MsSetup.inc) | ForEach-Object { $_ -replace "TARGET_SERVER", ${env:TEST_PHP_SQL_SERVER} -replace "TARGET_DATABASE", ${env:PDOSQLSRV_DBNAME} -replace "TARGET_USERNAME", ${env:TEST_PHP_SQL_UID} -replace "TARGET_PASSWORD", ${env:TEST_PHP_SQL_PWD} } | Set-Content ${env:APPVEYOR_BUILD_FOLDER}\test\pdo_sqlsrv\MsSetup.inc
|
||||
- ps: Get-Content ${env:APPVEYOR_BUILD_FOLDER}\test\pdo_sqlsrv\MsSetup.inc
|
||||
- ps: (Get-Content ${env:APPVEYOR_BUILD_FOLDER}\test\sqlsrv\MsSetup.inc) | ForEach-Object { $_ -replace "TARGET_SERVER", ${env:TEST_PHP_SQL_SERVER} -replace "TARGET_DATABASE", ${env:SQLSRV_DBNAME} -replace "USERNAME", ${env:TEST_PHP_SQL_UID} -replace "PASSWORD", ${env:TEST_PHP_SQL_PWD} } | Set-Content ${env:APPVEYOR_BUILD_FOLDER}\test\sqlsrv\MsSetup.inc
|
||||
- ps: (Get-Content ${env:APPVEYOR_BUILD_FOLDER}\test\sqlsrv\MsSetup.inc) | ForEach-Object { $_ -replace "TARGET_SERVER", ${env:TEST_PHP_SQL_SERVER} -replace "TARGET_DATABASE", ${env:SQLSRV_DBNAME} -replace "TARGET_USERNAME", ${env:TEST_PHP_SQL_UID} -replace "TARGET_PASSWORD", ${env:TEST_PHP_SQL_PWD} } | Set-Content ${env:APPVEYOR_BUILD_FOLDER}\test\sqlsrv\MsSetup.inc
|
||||
- ps: Get-Content ${env:APPVEYOR_BUILD_FOLDER}\test\sqlsrv\MsSetup.inc
|
||||
|
||||
build_script:
|
||||
|
|
|
@ -15,8 +15,8 @@ if (isset($_ENV['MSSQL_SERVER']) || isset($_ENV['MSSQL_USER']) || isset($_ENV['M
|
|||
$DriverName = $_ENV['MSSQL_DRIVER_NAME'];
|
||||
} else {
|
||||
$server = 'TARGET_SERVER';
|
||||
$uid = 'USERNAME';
|
||||
$pwd = 'PASSWORD';
|
||||
$uid = 'TARGET_USERNAME';
|
||||
$pwd = 'TARGET_PASSWORD';
|
||||
$databaseName = 'TARGET_DATABASE';
|
||||
$DriverName = "ODBC Driver 11 for SQL Server";
|
||||
}
|
||||
|
|
|
@ -11,8 +11,8 @@ $PhpDriver = "Microsoft SQL Server Driver for PHP";
|
|||
|
||||
$server = 'TARGET_SERVER';
|
||||
$dbName = 'TARGET_DATABASE';
|
||||
$userName = 'USERNAME';
|
||||
$userPassword = 'PASSWORD';
|
||||
$userName = 'TARGET_USERNAME';
|
||||
$userPassword = 'TARGET_PASSWORD';
|
||||
|
||||
$tableName = "php_test_table";
|
||||
$tableIndex = "php_test_table_index";
|
||||
|
|
Loading…
Reference in a new issue