2017-09-05 21:26:14 +00:00
|
|
|
---
|
2017-09-06 18:53:53 +00:00
|
|
|
# Disabling building for AppVeyor. We are just testing things.
|
|
|
|
build: false
|
2017-09-06 18:47:11 +00:00
|
|
|
clone_depth: 10
|
2017-09-08 20:54:43 +00:00
|
|
|
# Use the directory C:\testplugin so test directories will mostly work.
|
|
|
|
clone_folder: C:\testplugin
|
2017-09-06 18:47:11 +00:00
|
|
|
|
2019-09-12 19:59:44 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /v\d+\.\d+\.(x|\d+)/
|
|
|
|
|
2017-09-06 22:55:58 +00:00
|
|
|
# Cache the vim and vader directories between builds.
|
|
|
|
cache:
|
|
|
|
- C:\vim -> .appveyor.yml
|
|
|
|
- C:\vader -> .appveyor.yml
|
|
|
|
|
2017-09-06 18:47:11 +00:00
|
|
|
init:
|
2017-09-05 22:13:33 +00:00
|
|
|
# Stop git from changing newlines
|
|
|
|
- git config --global core.autocrlf input
|
2017-09-05 21:26:14 +00:00
|
|
|
|
2020-08-27 18:39:16 +00:00
|
|
|
# NOTE: If you change the Vim or Vader versions here, please also update the
|
|
|
|
# instructions for running tests on Windows in ale-development.txt
|
|
|
|
|
2017-09-06 18:47:11 +00:00
|
|
|
install:
|
|
|
|
# Download and unpack Vim
|
2017-09-06 22:43:49 +00:00
|
|
|
- ps: >-
|
2017-09-06 22:45:05 +00:00
|
|
|
if (!(Test-Path -Path C:\vim)){
|
2017-09-06 22:43:49 +00:00
|
|
|
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')
|
|
|
|
}
|
2017-09-06 22:47:51 +00:00
|
|
|
# Clone Vader and check out the commit we want
|
|
|
|
- ps: >-
|
|
|
|
if (!(Test-Path -Path C:\vader)){
|
2017-09-06 22:52:57 +00:00
|
|
|
git clone https://github.com/junegunn/vader.vim C:\vader 2> $null
|
2017-09-06 22:47:51 +00:00
|
|
|
cd C:\vader
|
2017-09-06 22:52:57 +00:00
|
|
|
git checkout -qf c6243dd81c98350df4dec608fa972df98fa2a3af 2> $null
|
2017-09-06 22:47:51 +00:00
|
|
|
}
|
2017-09-05 22:00:42 +00:00
|
|
|
|
2017-09-05 21:26:14 +00:00
|
|
|
test_script:
|
2017-09-08 20:54:43 +00:00
|
|
|
- cd C:\testplugin
|
2017-10-23 22:09:40 +00:00
|
|
|
- 'C:\vim\vim\vim80\vim.exe -u test\vimrc "+Vader!
|
|
|
|
test/*.vader test/*/*.vader test/*/*/*.vader test/*/*/*.vader"'
|