-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathMakefile
27 lines (21 loc) · 927 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
NEOTEST_DIR = misc/neotest
NIO_DIR = misc/nio
PLENARY_DIR = misc/plenary
TREESITTER_DIR = misc/treesitter
TEST_DIR = tests/adapter
test: $(NEOTEST_DIR) $(NIO_DIR) $(PLENARY_DIR) $(TREESITTER_DIR)
nvim --headless --clean \
-u $(TEST_DIR)/minimal_init.lua \
-c "PlenaryBustedDirectory $(TEST_DIR) { minimal_init = 'tests/adapter/minimal_init.lua' }"
$(NEOTEST_DIR):
git clone --depth=1 --no-single-branch https://github.com/nvim-neotest/neotest $(NEOTEST_DIR)
@rm -rf $(NEOTEST_DIR)/.git
$(NIO_DIR):
git clone --depth=1 --no-single-branch https://github.com/nvim-neotest/nvim-nio $(NIO_DIR)
@rm -rf $(NIO_DIR)/.git
$(PLENARY_DIR):
git clone --depth=1 --no-single-branch https://github.com/nvim-lua/plenary.nvim $(PLENARY_DIR)
@rm -rf $(PLENARY_DIR)/.git
$(TREESITTER_DIR):
git clone --depth=1 --no-single-branch https://github.com/nvim-treesitter/nvim-treesitter $(TREESITTER_DIR)
@rm -rf $(TREESITTER_DIR)/.git