Skip to content

Commit

Permalink
Merge pull request #3786 from morozov/appveyor-php-74
Browse files Browse the repository at this point in the history
Test against PHP 7.4 on AppVeyor
  • Loading branch information
morozov authored Dec 19, 2019
2 parents 461f500 + d4b5b61 commit c0b3892
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ environment:
- db: mssql
driver: sqlsrv
db_version: sql2012sp1
php: 7.3
php: 7.4
coverage: yes
- db: mssql
driver: sqlsrv
db_version: sql2017
coverage: no
php: 7.3
php: 7.4
- db: mssql
driver: pdo_sqlsrv
db_version: sql2017
php: 7.3
php: 7.4
coverage: yes

init:
Expand All @@ -44,7 +44,7 @@ install:
- ps: |
# Check if installation is cached
if (!(Test-Path c:\tools\php)) {
appveyor-retry cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y php --version 7.3.12
appveyor-retry cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
# install sqlite
appveyor-retry cinst -y sqlite
Get-ChildItem -Path c:\tools\php
Expand All @@ -63,8 +63,8 @@ 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
# Use a preview version of the extension that supports PHP 7.4
$DLLVersion = "5.7.1preview"
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 Down

0 comments on commit c0b3892

Please sign in to comment.