2020-10-22 16:51:41 +00:00
|
|
|
|
2021-01-01 11:52:39 +00:00
|
|
|
export PJ_ROOT=$(PWD)
|
2020-11-23 20:01:12 +00:00
|
|
|
|
|
|
|
BUSTED_ARGS = \
|
|
|
|
--lpath=$(PJ_ROOT)/lua/?.lua \
|
|
|
|
--lpath=$(PJ_ROOT)/plenary.nvim/lua/?.lua
|
|
|
|
|
|
|
|
TEST_FILE = $(PJ_ROOT)/test/gitsigns_spec.lua
|
|
|
|
|
2020-12-02 23:08:28 +00:00
|
|
|
neovim:
|
|
|
|
git clone --depth 1 https://github.com/neovim/neovim
|
|
|
|
make -C $@
|
|
|
|
|
|
|
|
plenary.nvim:
|
|
|
|
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim
|
|
|
|
|
2020-11-23 20:01:12 +00:00
|
|
|
.PHONY: test
|
2020-12-02 23:08:28 +00:00
|
|
|
test: neovim plenary.nvim
|
2020-11-23 20:01:12 +00:00
|
|
|
make -C neovim functionaltest \
|
|
|
|
BUSTED_ARGS="$(BUSTED_ARGS)" \
|
|
|
|
TEST_FILE="$(TEST_FILE)"
|
|
|
|
|
2021-01-17 14:13:07 +00:00
|
|
|
.PHONY: tl-check
|
|
|
|
tl-check:
|
|
|
|
eval $$(luarocks path) && tl check \
|
|
|
|
--skip-compat53 \
|
|
|
|
--werror all \
|
|
|
|
-I types \
|
|
|
|
-I teal \
|
|
|
|
--preload types \
|
|
|
|
teal/**/*.tl
|
|
|
|
|
|
|
|
.PHONY: tl-build
|
|
|
|
tl-build: tlconfig.lua
|
|
|
|
eval $$(luarocks path) && tl build
|
|
|
|
|
|
|
|
.PHONY: tl-ensure
|
|
|
|
tl-ensure: tl-build
|
|
|
|
git diff --exit-code --quiet -- lua
|