-
-
Notifications
You must be signed in to change notification settings - Fork 109
/
Makefile
35 lines (30 loc) · 934 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
33
34
35
ifndef VERBOSE
.SILENT:
endif
test: dependencies
@echo "Running indent-blankline tests..."
timeout 300 nvim -e \
--headless \
--noplugin \
-u specs/spec.lua \
-c "PlenaryBustedDirectory specs/features {minimal_init = 'specs/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 .
@if jq -e 'if . | length > 0 then true else false end' .ci/lua-language-server-log/check.json > /dev/null; then \
cat .ci/lua-language-server-log/check.json; \
exit 1; \
fi
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