forked from dcampos/nvim-snippy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (35 loc) · 1022 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
36
37
38
39
40
41
42
43
44
45
46
47
FILTER=.*
INIT_LUAROCKS := eval $$(luarocks --lua-version=5.1 path) &&
# .DEFAULT_GOAL := build
NEOVIM_BRANCH ?= stable
neovim:
git clone --depth 1 https://github.com/neovim/neovim --branch $(NEOVIM_BRANCH)
make -C $@
vim-snippets:
git clone --depth 1 https://github.com/honza/vim-snippets
export TEST_COLORS=1
functionaltest: neovim vim-snippets
$(INIT_LUAROCKS) VIMRUNTIME=$(PWD)/neovim/runtime \
neovim/.deps/usr/bin/busted \
-v \
--shuffle \
--lazy \
--helper=$(PWD)/test/functional/preload.lua \
--output test.busted.outputHandlers.nvim \
--lpath=$(PWD)/neovim/?.lua \
--lpath=$(PWD)/neovim/build/?.lua \
--lpath=$(PWD)/neovim/runtime/lua/?.lua \
--lpath=$(PWD)/?.lua \
--lpath=$(PWD)/lua/?.lua \
--filter=$(FILTER) \
$(PWD)/test/functional
-@stty sane
unittest:
VIMRUNTIME=$(PWD)/neovim/runtime/ \
VUSTED_NVIM=$(PWD)/neovim/build/bin/nvim \
vusted --shuffle test/unit
test: functionaltest unittest
stylua-check:
stylua -c lua/ test/
stylua-format:
stylua lua/ test/