-
Notifications
You must be signed in to change notification settings - Fork 35
/
Makefile
32 lines (27 loc) · 869 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ifndef VERBOSE
.SILENT:
endif
test: dependencies
@echo "Running hlchunk tests..."
timeout 300 nvim -e \
--headless \
--noplugin \
-u test/spec.lua \
-c "PlenaryBustedDirectory test/features {minimal_init = 'test/spec.lua'}"
luacheck:
luacheck .
stylua:
stylua --check .
lua-language-server: dependencies
rm -rf .ci/lua-language-server-log
lua-language-server --configpath .luarc.$(version).json --logpath .ci/lua-language-server-log --check .
[ -f .ci/lua-language-server-log/check.json ] && { cat .ci/lua-language-server-log/check.json 2>/dev/null; exit 1; } || true
dependencies:
if [ ! -d .ci/vendor ]; then \
git clone --depth 1 \
https://github.com/nvim-lua/plenary.nvim \
.ci/vendor/pack/vendor/start/plenary.nvim; \
git clone --depth 1 \
https://github.com/folke/neodev.nvim \
.ci/vendor/pack/vendor/start/neodev.nvim; \
fi