From 59fd98b8b28030e34050c5eaab07357f8b3234bc Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 6 Sep 2017 23:43:49 +0100 Subject: [PATCH] Try and set up AppVeyor so it will only download Vim if the directory is not there --- .appveyor.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 394aef9c..25439b5e 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -9,17 +9,16 @@ init: install: # Download and unpack Vim - - cd C:\ - - ps: 'Invoke-WebRequest ftp://ftp.vim.org/pub/vim/pc/vim80-586w32.zip - -OutFile C:\vim.zip' - - ps: Add-Type -A System.IO.Compression.FileSystem - - ps: "[IO.Compression.ZipFile]::ExtractToDirectory('C:\\vim.zip', 'C:\\vim')" - # Download and unpack Vim runtime files - - cd C:\ - - ps: 'Invoke-WebRequest ftp://ftp.vim.org/pub/vim/pc/vim80-586rt.zip - -OutFile C:\rt.zip' - - ps: "[IO.Compression.ZipFile]::ExtractToDirectory('C:\\rt.zip', 'C:\\vim')" - # Set up Vader for tests + - ps: >- + if (!Test-Path -Path C:\vim)) { + Add-Type -A System.IO.Compression.FileSystem + Invoke-WebRequest ftp://ftp.vim.org/pub/vim/pc/vim80-586w32.zip ` + -OutFile C:\vim.zip + [IO.Compression.ZipFile]::ExtractToDirectory('C:\vim.zip', 'C:\vim') + Invoke-WebRequest ftp://ftp.vim.org/pub/vim/pc/vim80-586rt.zip ` + -OutFile C:\rt.zip + [IO.Compression.ZipFile]::ExtractToDirectory('C:\rt.zip', 'C:\vim') + } - git clone https://github.com/junegunn/vader.vim C:\vader - cd C:\vader - git checkout -qf c6243dd81c98350df4dec608fa972df98fa2a3af