File tree 1 file changed +13
-6
lines changed
1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -2,21 +2,28 @@ version: '{build}'
2
2
clone_depth : 1
3
3
environment :
4
4
matrix :
5
- - VIM_URL : http://vim-jp.org/redirects/koron/vim-kaoriya/vim74/oldest/win64/
6
- - VIM_URL : http://vim-jp.org/redirects/koron/vim-kaoriya/vim80/oldest/win64/
7
- - VIM_URL : http://vim-jp.org/redirects/koron/vim-kaoriya/latest/win64/
5
+ - VIM_URL : https://vim-jp.org/redirects/koron/vim-kaoriya/vim74/oldest/win64/
6
+ - VIM_URL : https://github.com/vim/vim-win32-installer/releases/download/v8.0.0003/gvim_8.0.0003_x64.zip
7
+ - VIM_URL : https://github.com/vim/vim-win32-installer/releases/download/v8.1.0001/gvim_8.1.0001_x64.zip
8
+ - VIM_URL : https://github.com/vim/vim-win32-installer/releases/download/v8.2.0008/gvim_8.2.0008_x64.zip
9
+ - VIM_URL : https://vim-jp.org/redirects/vim/vim-win32-installer/latest/x64/
8
10
install :
9
11
- ps : |
10
12
$zip = $Env:APPVEYOR_BUILD_FOLDER + '\vim.zip'
11
13
$vim = $Env:APPVEYOR_BUILD_FOLDER + '\vim\'
14
+ $url = $Env:VIM_URL
12
15
13
- $redirect = Invoke-WebRequest -URI $Env:VIM_URL
14
- (New-Object Net.WebClient).DownloadFile($redirect.Links[0].href, $zip)
16
+ if ($url.Contains("vim-jp.org/redirects"))
17
+ {
18
+ $redirect = Invoke-WebRequest -URI $Env:VIM_URL
19
+ $url = $redirect.Links[0].href
20
+ }
21
+ (New-Object Net.WebClient).DownloadFile($url, $zip)
15
22
16
23
[Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem') > $null
17
24
[System.IO.Compression.ZipFile]::ExtractToDirectory($zip, $vim)
18
25
19
- $Env:THEMIS_VIM = $vim + (Get-ChildItem $vim).Name + '\ vim.exe'
26
+ $Env:THEMIS_VIM = (Get-ChildItem -r -Filter ' vim.exe' $vim).FullName
20
27
build : off
21
28
test_script :
22
29
- ps : |
You can’t perform that action at this time.
0 commit comments