2017-10-05 06:21:24 +08:00
|
|
|
test: build/vader | build
|
2018-07-15 20:23:38 +08:00
|
|
|
nvim -Nu test/vimrc -c 'Vader! test/**'
|
2017-10-05 06:21:24 +08:00
|
|
|
|
2017-11-23 22:01:50 +08:00
|
|
|
COVIMERAGE=$(shell command -v covimerage 2>/dev/null || echo build/covimerage/bin/covimerage)
|
2017-10-08 00:43:32 +08:00
|
|
|
|
|
|
|
test_coverage: $(COVIMERAGE) build/vader | build
|
2018-07-15 20:23:38 +08:00
|
|
|
$(COVIMERAGE) run nvim -Nu test/vimrc -c 'Vader! test/**'
|
2017-10-05 06:47:29 +08:00
|
|
|
|
|
|
|
build/covimerage:
|
|
|
|
virtualenv $@
|
2017-10-08 00:43:32 +08:00
|
|
|
build/covimerage/bin/covimerage: | build/covimerage
|
2017-10-15 21:51:46 +08:00
|
|
|
build/covimerage/bin/pip install covimerage
|
2017-10-05 06:47:29 +08:00
|
|
|
|
2017-10-05 06:21:24 +08:00
|
|
|
build/vader:
|
|
|
|
git clone --depth 1 https://github.com/junegunn/vader.vim.git $@
|
|
|
|
|
|
|
|
build:
|
|
|
|
mkdir -p $@
|
2017-10-05 06:47:40 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) -r build
|
|
|
|
|
|
|
|
.PHONY: clean test
|