Skip to content

Commit 0ce5aeb

Browse files
weltlingnikic
authored andcommitted
Upgrade to latest SDK and change the way items are fetched
1 parent a90ec3c commit 0ce5aeb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.appveyor.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ install:
1414
}
1515
$bname = 'php-sdk-' + $env:BIN_SDK_VER + '.zip'
1616
if (-not (Test-Path c:\build-cache\$bname)) {
17-
(new-object net.webclient).DownloadFile('https://github.com/OSTC/php-sdk-binary-tools/archive/' + $bname, 'c:\build-cache\' + $bname)
17+
Invoke-WebRequest "https://github.com/OSTC/php-sdk-binary-tools/archive/$bname" -OutFile "c:\build-cache\$bname"
1818
}
1919
$dname0 = 'php-sdk-binary-tools-php-sdk-' + $env:BIN_SDK_VER
2020
$dname1 = 'php-sdk-' + $env:BIN_SDK_VER
@@ -27,7 +27,7 @@ cache:
2727
c:\build-cache -> .appveyor.yml
2828

2929
environment:
30-
BIN_SDK_VER: 2.0.10
30+
BIN_SDK_VER: 2.1.1
3131
matrix:
3232
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
3333
ARCH: x64
@@ -96,9 +96,9 @@ build_script:
9696
if ('0' -eq $env:TS) { $ts_part = '-nts' }
9797
$bname = 'php-devel-pack-' + $env:PHP_VER + $ts_part + '-Win32-' + $env:VC.toUpper() + '-' + $env:ARCH + '.zip'
9898
if (-not (Test-Path c:\build-cache\$bname)) {
99-
(new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/archives/' + $bname, 'c:\build-cache\' + $bname)
99+
Invoke-WebRequest "http://windows.php.net/downloads/releases/archives/$bname" -OutFile "c:\build-cache\$bname"
100100
if (-not (Test-Path c:\build-cache\$bname)) {
101-
(new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/' + $bname, 'c:\build-cache\' + $bname)
101+
Invoke-WebRequest "http://windows.php.net/downloads/releases/$bname" -OutFile "c:\build-cache\$bname"
102102
}
103103
}
104104
$dname0 = 'php-' + $env:PHP_VER + '-devel-' + $env:VC.toUpper() + '-' + $env:ARCH
@@ -139,9 +139,9 @@ test_script:
139139
if ('0' -eq $env:TS) { $ts_part = '-nts' }
140140
$bname = 'php-' + $env:PHP_VER + $ts_part + '-Win32-' + $env:VC.toUpper() + '-' + $env:ARCH + '.zip'
141141
if (-not (Test-Path c:\build-cache\$bname)) {
142-
(new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/archives/' + $bname, 'c:\build-cache\' + $bname)
142+
Invoke-WebRequest "http://windows.php.net/downloads/releases/archives/$bname" -OutFile "c:\build-cache\$bname"
143143
if (-not (Test-Path c:\build-cache\$bname)) {
144-
(new-object net.webclient).DownloadFile('http://windows.php.net/downloads/releases/' + $bname, 'c:\build-cache\' + $bname)
144+
Invoke-WebRequest "http://windows.php.net/downloads/releases/$bname" -OutFile "c:\build-cache\$bname"
145145
}
146146
}
147147
$dname = 'php-' + $env:PHP_VER + $ts_part + '-' + $env:VC.toUpper() + '-' + $env:ARCH

0 commit comments

Comments
 (0)