-
Notifications
You must be signed in to change notification settings - Fork 170
/
Copy pathMakefile
38 lines (35 loc) · 1.02 KB
/
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
nvim ?= nvim
#
# Run all tests or specic module tests
#
# Test both stable and nightly (assuming `nv` is linked to nightly):
# `make test nvim=nv` or `make test nvim="nvim nv"` (for both)
#
# Test specific module(s) with `make test glob=file`
# NOTE: glob is resolved using `vim.fn.globpath` so we can also run:
# `make test glob=f`
#
.PHONY: test
test:
for nvim_exec in $(nvim); do \
printf "\n======\n\n" ; \
$$nvim_exec --version | head -n 1 && echo '' ; \
$$nvim_exec --headless --noplugin -u ./scripts/minimal_init.lua \
-l ./scripts/make_cli.lua ; \
done
#
# Download 'mini.nvim' and `nvim-web-devicons` into "deps" subfolder
# only used with the CI workflow, `minimal_init` will detect the deps
# in our lazy.nvim local config
#
.PHONY: deps
deps:
make clean
@mkdir -p deps
git clone --depth=1 --single-branch https://github.com/echasnovski/mini.nvim deps/mini.nvim
git clone --depth=1 --single-branch https://github.com/nvim-tree/nvim-web-devicons \
deps/nvim-web-devicons
# clean up
.PHONY: clean
clean:
rm -rf deps