mirror of
https://github.com/dense-analysis/ale.git
synced 2026-08-18 13:47:58 +08:00
Add neovim 0.6 to run-tests (#3998)
* Update test scripts * Remove neovim 0.3 and 0.4 * Add neovim 0.6.1 Co-authored-by: Horacio Sanson <horacio@allm.inc> Co-authored-by: w0rp <devw0rp@gmail.com>
This commit is contained in:
co-authored by
Horacio Sanson
w0rp
parent
e81f005c78
commit
0f55d371e9
@@ -2,10 +2,6 @@ Before:
|
||||
call ale#assert#SetUpLinterTest('terraform', 'terraform_ls')
|
||||
|
||||
After:
|
||||
if isdirectory(g:dir . '/.terraform')
|
||||
call delete(g:dir . '/.terraform', 'd')
|
||||
endif
|
||||
|
||||
unlet! b:ale_terraform_terraform_executable
|
||||
unlet! b:ale_terraform_ls_executable
|
||||
unlet! b:ale_terraform_ls_options
|
||||
@@ -40,22 +36,7 @@ Execute(Should set custom options):
|
||||
AssertLinter 'terraform-ls',
|
||||
\ ale#Escape('terraform-ls') . ' serve --bar'
|
||||
|
||||
Execute(Should return current directory if it contains .terraform directory):
|
||||
call mkdir(g:dir . '/.terraform')
|
||||
AssertLSPProject g:dir
|
||||
|
||||
Execute(Should return nearest directory with .terraform if found in parent directory):
|
||||
call ale#test#SetFilename('../test-files/terraform/main.tf')
|
||||
|
||||
let b:parent_dir = ale#path#Simplify(g:dir . '/..')
|
||||
let b:tf_dir = b:parent_dir . '/.terraform'
|
||||
|
||||
if !isdirectory(b:tf_dir)
|
||||
call mkdir(b:tf_dir)
|
||||
endif
|
||||
|
||||
AssertLSPProject b:parent_dir
|
||||
|
||||
call delete(b:tf_dir, 'd')
|
||||
unlet!b:parent_dir
|
||||
unlet!b:tf_dir
|
||||
AssertLSPProject ale#test#GetFilename('../test-files/terraform')
|
||||
|
||||
Reference in New Issue
Block a user