-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
30 lines (22 loc) · 1007 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
# disable the `all` command because some external tool might run it automatically
.SUFFIXES:
.PHONY: deps
all:
test:
nvim --version | head -n 1 && echo ""
nvim --headless --noplugin -u ./scripts/minimal_init.lua \
-c "lua MiniTest.run({ execute = { reporter = MiniTest.gen_reporter.stdout({ group_depth = 1 }) }, script_path = 'scripts/minitest.lua' })"
test-debug:
export DEBUG=true && $(MAKE) test
deps:
@mkdir -p deps
@test -d deps/mini.nvim || git clone --depth 1 /~https://github.com/echasnovski/mini.nvim deps/mini.nvim
@test -d deps/plenary.nvim || git clone --depth 1 /~https://github.com/nvim-lua/plenary.nvim.git deps/plenary.nvim
@test -d deps/nvim-treesitter || git clone --depth 1 /~https://github.com/nvim-treesitter/nvim-treesitter.git deps/nvim-treesitter
test-ci: deps test
# generates the documentation
documentation:
nvim --headless --noplugin -u ./scripts/minimal_init.lua -c "lua require('mini.doc').generate()" -c "qa!"
documentation-ci: deps documentation
lint:
stylua .