Skip to content

Commit

Permalink
appveyor: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Mar 23, 2018
1 parent 3f35235 commit 49cbe22
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ init:

install:
# Install PHP
- IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php)
- IF EXIST c:\php (SET PHP=0) ELSE (SET PHP=1)
- IF %PHP%==1 mkdir c:\php
- IF %PHP%==1 cd c:\php
- IF %PHP%==1 curl https://windows.php.net/downloads/releases/archives/php-7.1.0-Win32-VC14-x64.zip --output php.zip
- IF %PHP%==1 curl https://windows.php.net/downloads/releases/archives/php-7.1.5-Win32-VC14-x64.zip --output php.zip
- IF %PHP%==1 7z x php.zip >nul
- IF %PHP%==1 echo extension_dir=ext >> php.ini
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
- IF %PHP%==1 appveyor DownloadFile https://github.com/Microsoft/msphpsql/releases/download/4.1.4-Windows/7.1.zip
- IF %PHP%==1 7z x 7.1.zip >nul
- IF %PHP%==1 copy 7.1\x64\php_pdo_sqlsrv_71_ts.dll ext\php_pdo_sqlsrv_ts.dll
- IF %PHP%==1 curl https://github.com/Microsoft/msphpsql/releases/download/v4.3.0/Windows-7.1.zip -L --output sqlsrv.zip
- IF %PHP%==1 7z x sqlsrv.zip >nul
- IF %PHP%==1 copy Windows-7.1\x64\php_pdo_sqlsrv_71_ts.dll ext\php_pdo_sqlsrv_ts.dll
- IF %PHP%==1 del /Q *.zip
- cd c:\projects\database

Expand All @@ -40,3 +41,12 @@ install:

test_script:
- vendor\bin\tester tests -s -c tests\php-win.ini

on_failure:
- >
for /r %%x in (*.actual) do (
echo --- %%x
type "%%x"
echo.
echo.
)
2 changes: 1 addition & 1 deletion tests/Database/ResultSet.normalizeRow.sqlsrv.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $res = $connection->query('SELECT * FROM types');

Assert::equal([
'bigint' => 1,
'binary_3' => '0000FF',
'binary_3' => "\x00\x00\xFF",
'bit' => '1',
'char_5' => 'a ',
'date' => new DateTime('2012-10-13 00:00:00'),
Expand Down

0 comments on commit 49cbe22

Please sign in to comment.