diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-01-01 09:54:56 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-05-09 21:58:23 +0200 |
commit | d0e3c2c1369f9d32e778316fb9a4df68b7442ec1 (patch) | |
tree | b845ffb8563bef0ff825d692b65a4120a9f78be9 | |
parent | fe6dd5a8f791b2ff5c41d31822bb9172d41f4d48 (diff) | |
download | forums-d0e3c2c1369f9d32e778316fb9a4df68b7442ec1.tar forums-d0e3c2c1369f9d32e778316fb9a4df68b7442ec1.tar.gz forums-d0e3c2c1369f9d32e778316fb9a4df68b7442ec1.tar.bz2 forums-d0e3c2c1369f9d32e778316fb9a4df68b7442ec1.tar.xz forums-d0e3c2c1369f9d32e778316fb9a4df68b7442ec1.zip |
[ticket/14948] Switch to VC15 where necessary for appveyor mssql driver
PHPBB3-14948
-rw-r--r-- | .appveyor.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.appveyor.yml b/.appveyor.yml index 4ff99956f2..1b531098b1 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -64,9 +64,10 @@ before_test: if ($env:db -eq "mssql") { cd c:\tools\php\ext $DLLVersion = "5.3.0" - curl -o php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip https://windows.php.net/downloads/pecl/releases/sqlsrv/$($:DLLVersion)/php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip + $VCVersion = If ([System.Version]"$($env:php)" -ge [System.Version]"7.2") {"vc15"} Else {"vc14"} + curl -o php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip https://windows.php.net/downloads/pecl/releases/sqlsrv/$($:DLLVersion)/php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-$($VCVersion)-x64.zip 7z x -y php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip > $null - curl -o php_pdo_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip https://windows.php.net/downloads/pecl/releases/pdo_sqlsrv/$($DLLVersion)/php_pdo_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip + curl -o php_pdo_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip https://windows.php.net/downloads/pecl/releases/pdo_sqlsrv/$($DLLVersion)/php_pdo_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-$($VCVersion)-x64.zip 7z x -y php_pdo_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip > $null Remove-Item c:\tools\php\* -include .zip cd c:\tools\php |