Skip to content

Commit

Permalink
Merge pull request #3484 from morozov/stable-extensions
Browse files Browse the repository at this point in the history
Use latest stable versions of sqlsrv and pdo_sqlsrv on CI
  • Loading branch information
Ocramius authored Mar 15, 2019
2 parents 77ecc63 + a0b958b commit 5dd66e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
5 changes: 2 additions & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ install:
Add-Content php.ini "`n extension=php_curl.dll"
Add-Content php.ini "`n curl.cainfo=C:\tools\cacert\bundle.pem"
# Get and install the latest stable sqlsrv DLL's
$DLLVersion = (Invoke-WebRequest "https://pecl.php.net/rest/r/sqlsrv/stable.txt").Content
$DLLVersion = "5.5.0preview"
cd c:\tools\php\ext
$source = "https://windows.php.net/downloads/pecl/releases/sqlsrv/$($DLLVersion)/php_sqlsrv-$($DLLVersion)-$($env:php)-nts-vc15-x64.zip"
$destination = "c:\tools\php\ext\php_sqlsrv-$($DLLVersion)-$($env:php)-nts-vc15-x64.zip"
Expand All @@ -79,7 +78,7 @@ install:
$destination = "c:\tools\php\ext\php_pdo_sqlsrv-$($DLLVersion)-$($env:php)-nts-vc15-x64.zip"
Invoke-WebRequest $source -OutFile $destination
7z x -y php_pdo_sqlsrv-$($DLLVersion)-$($env:php)-nts-vc15-x64.zip > $null
$DLLVersion = "2.6.0"
$DLLVersion = (Invoke-WebRequest "https://pecl.php.net/rest/r/xdebug/stable.txt").Content
$source = "https://xdebug.org/files/php_xdebug-$($DLLVersion)-$($env:php)-vc15-nts-x86_64.dll"
$destination = "c:\tools\php\ext\php_xdebug.dll"
Invoke-WebRequest $source -OutFile $destination
Expand Down
6 changes: 1 addition & 5 deletions tests/travis/install-mssql-pdo_sqlsrv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@ set -ex

echo "Installing extension"

if [ "$TRAVIS_PHP_VERSION" == "7.3" ] || [ "$TRAVIS_PHP_VERSION" == "nightly" ] ; then
pecl install pdo_sqlsrv-5.4.0preview
else
pecl install pdo_sqlsrv
fi
pecl install pdo_sqlsrv
6 changes: 1 addition & 5 deletions tests/travis/install-mssql-sqlsrv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@ set -ex

echo "Installing extension"

if [ "$TRAVIS_PHP_VERSION" == "7.3" ] || [ "$TRAVIS_PHP_VERSION" == "nightly" ] ; then
pecl install sqlsrv-5.4.0preview
else
pecl install sqlsrv
fi
pecl install sqlsrv

0 comments on commit 5dd66e6

Please sign in to comment.