Try and set up AppVeyor so it will only download Vim if the directory is not there

This commit is contained in:
w0rp 2017-09-06 23:43:49 +01:00
parent fbc846b4ba
commit 59fd98b8b2

View File

@ -9,17 +9,16 @@ init:
install: install:
# Download and unpack Vim # Download and unpack Vim
- cd C:\ - ps: >-
- ps: 'Invoke-WebRequest ftp://ftp.vim.org/pub/vim/pc/vim80-586w32.zip if (!Test-Path -Path C:\vim)) {
-OutFile C:\vim.zip' Add-Type -A System.IO.Compression.FileSystem
- ps: Add-Type -A System.IO.Compression.FileSystem Invoke-WebRequest ftp://ftp.vim.org/pub/vim/pc/vim80-586w32.zip `
- ps: "[IO.Compression.ZipFile]::ExtractToDirectory('C:\\vim.zip', 'C:\\vim')" -OutFile C:\vim.zip
# Download and unpack Vim runtime files [IO.Compression.ZipFile]::ExtractToDirectory('C:\vim.zip', 'C:\vim')
- cd C:\ Invoke-WebRequest ftp://ftp.vim.org/pub/vim/pc/vim80-586rt.zip `
- ps: 'Invoke-WebRequest ftp://ftp.vim.org/pub/vim/pc/vim80-586rt.zip -OutFile C:\rt.zip
-OutFile C:\rt.zip' [IO.Compression.ZipFile]::ExtractToDirectory('C:\rt.zip', 'C:\vim')
- ps: "[IO.Compression.ZipFile]::ExtractToDirectory('C:\\rt.zip', 'C:\\vim')" }
# Set up Vader for tests
- git clone https://github.com/junegunn/vader.vim C:\vader - git clone https://github.com/junegunn/vader.vim C:\vader
- cd C:\vader - cd C:\vader
- git checkout -qf c6243dd81c98350df4dec608fa972df98fa2a3af - git checkout -qf c6243dd81c98350df4dec608fa972df98fa2a3af