summaryrefslogtreecommitdiff
path: root/.appveyor.yml
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-09-06 23:43:49 +0100
committerw0rp <devw0rp@gmail.com>2017-09-06 23:43:49 +0100
commit59fd98b8b28030e34050c5eaab07357f8b3234bc (patch)
treeea8a0c9792b285381d3cf994f9225415ba2b5bfc /.appveyor.yml
parentfbc846b4ba727d1ac579956cdccd550597b522c8 (diff)
downloadale-59fd98b8b28030e34050c5eaab07357f8b3234bc.zip
Try and set up AppVeyor so it will only download Vim if the directory is not there
Diffstat (limited to '.appveyor.yml')
-rw-r--r--.appveyor.yml21
1 files 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