blob: d8a3be96e59ca11039dd2bd5c482613e90fc0c76 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
ROOT := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
NVIM ?= nvim
.PHONY: deps test check-shell check
deps:
@if git -C "$(ROOT)" ls-files --error-unmatch deps/mini.test >/dev/null 2>&1; then \
git -C "$(ROOT)" submodule update --init --depth 1 --checkout deps/mini.test; \
else \
test -f "$(ROOT)/deps/mini.test/lua/mini/test.lua"; \
fi
test: deps
cd "$(ROOT)" && "$(NVIM)" --headless --noplugin -i NONE \
-u "$(ROOT)/scripts/minimal_init.lua" -c "lua MiniTest.run()"
check-shell:
bash -n "$(ROOT)/scripts/herdr-nav.sh"
bash -n "$(ROOT)/scripts/herdr-resize.sh"
check: check-shell test
|