-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (26 loc) · 992 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
31
32
33
34
35
36
SHELL := /usr/bin/bash
# TODO:
# - lint
# - format
.PHONY: demo
vim=DEBUG_NOTEFLOW=true nvim --noplugin -u tests/minimal_init.vim --headless
test: deps
$(vim) -c "PlenaryBustedDirectory tests/plenary/ {minimal_init = 'tests/minimal_init.vim'}"
deps:
mkdir deps
cd deps && git clone --depth 1 https://github.com/nvim-lua/plenary.nvim
cd deps && git clone --depth 1 https://github.com/nvim-telescope/telescope.nvim
cd deps && git clone --depth 1 https://github.com/nvim-lua/popup.nvim
ci-test: github-actions-setup.sh
bash -c 'source github-actions-setup.sh nightly-x64 && make test'
github-actions-setup.sh:
curl -OL https://raw.githubusercontent.com/norcalli/bot-ci/master/scripts/github-actions-setup.sh
clean:
rm -rf deps
testfile: deps
$(vim) -c "PlenaryBustedFile $(testfile)"
demo: deps
XDG_CONFIG_HOME=${PWD}/demo XDG_DATA_HOME=${PWD}/deps nvim --noplugin -u demo/init.vim -c "set rtp+=${PWD}"
# ignore warnings
lint:
luacheck lua; (( $$? == 0 )) || (( $$? == 1 ))