Add CI hack

This commit is contained in:
Stephan Seitz 2021-03-07 17:57:18 +01:00 committed by Kiyan
parent 4395783990
commit c573cdd0a9
2 changed files with 6 additions and 7 deletions

View file

@ -153,6 +153,11 @@ local function run_install(cache_folder, install_folder, lang, repo, with_sync,
end
local parser_lib_name = install_folder..path_sep..lang..".so"
if repo.requires_generate_from_grammar ~= 1 and vim.env.CI then
print("Skipping language "..lang.." on CI (requires npm)!")
return
end
generate_from_grammar = repo.requires_generate_from_grammar or generate_from_grammar
if generate_from_grammar and vim.fn.executable('tree-sitter') ~= 1 then