gitsigns.nvim/Makefile

40 lines
769 B
Makefile
Raw Normal View History

2020-10-22 16:51:41 +00:00
export PJ_ROOT=$(PWD)
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
.PHONY: test
2020-12-02 23:08:28 +00:00
test: neovim plenary.nvim
make -C neovim functionaltest \
BUSTED_ARGS="$(BUSTED_ARGS)" \
TEST_FILE="$(TEST_FILE)"
.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