aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-01-10 21:24:30 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-01-10 21:41:53 +0100
commit6a75fe26fc80e1ffab0242ea6c2e9d1c1ef7d7c7 (patch)
treef5ccaa8c5d8249b921889f0359814e89b27b1d82
parent8d551e2dedbde8c6126c2cbbb58768c1e2ad275d (diff)
downloadforums-6a75fe26fc80e1ffab0242ea6c2e9d1c1ef7d7c7.tar
forums-6a75fe26fc80e1ffab0242ea6c2e9d1c1ef7d7c7.tar.gz
forums-6a75fe26fc80e1ffab0242ea6c2e9d1c1ef7d7c7.tar.bz2
forums-6a75fe26fc80e1ffab0242ea6c2e9d1c1ef7d7c7.tar.xz
forums-6a75fe26fc80e1ffab0242ea6c2e9d1c1ef7d7c7.zip
[ticket/15055] Use regex to copy php to tools php
PHPBB3-15055
-rw-r--r--.appveyor.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 0c5874f386..a4fac799b2 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -40,7 +40,7 @@ before_test:
- ps: |
Set-Service wuauserv -StartupType Manual
cinst -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|]','')
- Get-ChildItem -Path "c:\tools\php$($env:php -replace '[.]','')" -Recurse |
+ Get-ChildItem -Path "c:\tools\php$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1$2')" -Recurse |
Move-Item -destination "c:\tools\php"
cd c:\tools\php
cat php.ini-development | %{$_ -replace "memory_limit = 128M","memory_limit = 1024M"} | Out-File -Encoding "Default" php.ini
@@ -64,10 +64,10 @@ before_test:
if ($env:db -eq "mssql") {
cd c:\tools\php\ext
$DLLVersion = "4.1.6.1"
- appveyor DownloadFile http://windows.php.net/downloads/pecl/releases/sqlsrv/$($:DLLVersion)/php_sqlsrv-$($DLLVersion)-$($env:php)-nts-vc14-x64.zip
- 7z x -y php_sqlsrv-$($DLLVersion)-$($env:php)-nts-vc14-x64.zip > $null
- appveyor-retry appveyor DownloadFile http://windows.php.net/downloads/pecl/releases/pdo_sqlsrv/$($DLLVersion)/php_pdo_sqlsrv-$($DLLVersion)-$($env:php)-nts-vc14-x64.zip
- 7z x -y php_pdo_sqlsrv-$($DLLVersion)-$($env:php)-nts-vc14-x64.zip > $null
+ appveyor DownloadFile http://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
+ 7z x -y php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip > $null
+ appveyor-retry appveyor DownloadFile http://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
+ 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
Add-Content php.ini "`nextension=php_sqlsrv.dll"