generated from shortcuts/neovim-plugin-boilerplate
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (43 loc) · 1.46 KB
/
Makefile
File metadata and controls
55 lines (43 loc) · 1.46 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.POSIX:
.SUFFIXES:
.PHONY: all clean test-nightly test-0.8.3 test documentation lint luals update_glyphs setup
all: documentation lint luals test
# runs all the test files.
test:
./scripts/deps.sh mini
nvim --version | head -n 1
nvim --headless --noplugin -u ./scripts/minimal_init.lua \
-c "lua require('mini.test').setup()" \
-c "lua MiniTest.run({ execute = { reporter = MiniTest.gen_reporter.stdout({ group_depth = 2 }) } })"
# runs all the test files on the nightly version, `bob` must be installed.
test-nightly:
./scripts/deps.sh mini
bob use nightly
make test
# runs all the test files on the 0.8.3 version, `bob` must be installed.
test-0.8.3:
./scripts/deps.sh mini
bob use 0.8.3
make test
# cleans the `deps/` and `.ci/` directories, useful for resetting the environment.
clean:
rm -rf deps .ci
# installs deps, then generates documentation.
documentation:
./scripts/deps.sh mini
nvim --headless --noplugin -u ./scripts/minimal_init.lua \
-c "lua require('mini.doc').generate()" \
-c "qa!"
# performs a lint check and fixes issue if possible, following the config in `stylua.toml`.
lint:
stylua . -g '*.lua' -g '!deps/' -g '!nightly/'
selene plugin/ lua/
luals:
./scripts/deps.sh luals
lua-language-server --configpath .luarc.json --logpath .ci/lua-ls/log --check .
[ -f .ci/lua-ls/log/check.json ] && { cat .ci/lua-ls/log/check.json 2>/dev/null; exit 1; } || true
update_glyphs:
./scripts/update_glyphs.sh
# setup
setup:
./scripts/setup.sh