Skip to content

Commit

Permalink
use webclass to download
Browse files Browse the repository at this point in the history
  • Loading branch information
Qingqing Sun committed Sep 23, 2016
1 parent 68b5a6a commit 8ef38f4
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ build_script:
- ps: |
Write-Host "Begin download artifacts"
$file_name = $env:APPVEYOR_REPO_TAG_NAME + ".zip"
$source = "https://github.com/summersun/poc/archive/" + $file_name
# https://github.com/Azure/azure-powershell/archive/v2.2.0-September2016.zip
$dest = "C:\application\data"
Invoke-WebRequest -Uri $source -OutFile $env:APPVEYOR_BUILD_FOLDER
$file_name = $env:APPVEYOR_REPO_TAG_NAME + ".zip"
Write-Host $file_name
$source = "http://github.com/summersun/poc/archive/" + $file_name
Write-Host $source
$dest = $env:APPVEYOR_BUILD_FOLDER +"\" + $file_name
Write-Host $dest
# https://github.com/Azure/azure-powershell/archive/v2.2.0-September2016.zip
(New-Object Net.WebClient).DownloadFile($source, $dest)
7z x $file_name -o$env:APPVEYOR_BUILD_FOLDER -y
# problem 1: find the target folders and files
Expand Down

0 comments on commit 8ef38f4

Please sign in to comment.