forked from chipsenkbeil/org-roam.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (19 loc) · 788 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
.PHONY: help test vendor vendor/plenary.nvim clean
NVIM=nvim
help: ## Display help information
@printf 'usage: make [target] ...\n\ntargets:\n'
@egrep '^(.+)\:\ .*##\ (.+)' $(MAKEFILE_LIST) | sed 's/:.*##/#/' | column -t -c 2 -s '#'
test: ## Run all tests
@$(NVIM) \
--headless \
--noplugin \
-u spec/minimal_init.lua \
-c "lua require('plenary.test_harness').test_directory('spec', {minimal_init='spec/minimal_init.lua', sequential=true})"
test-file: ## Run specific test file denoted by FILE environment variable
@$(NVIM) \
--headless \
--noplugin \
-u spec/minimal_init.lua \
-c "lua require('plenary.test_harness').test_directory('spec/$(FILE)', {minimal_init='spec/minimal_init.lua', sequential=true})"
clean: ## Cleans out vendor directory
@rm -rf vendor/*