1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:30:05 +08:00
SpaceVim/Makefile

32 lines
779 B
Makefile
Raw Normal View History

DOCKER = docker run -it --rm -v $(PWD):/testplugin -v $(PWD)/test:/test -v $(PWD)/build:/build "spacevim/vims"
ifeq ($(VIM),nvim)
DEFAULT_VIM:=$(DOCKER) neovim-stable
else
DEFAULT_VIM:=$(DOCKER) vim8
endif
2017-10-05 06:21:24 +08:00
test: build/vader | build
$(DEFAULT_VIM) -Nu test/vimrc -c 'Vader! test/**'
2017-10-05 06:21:24 +08:00
COVIMERAGE=$(shell command -v covimerage 2>/dev/null || echo build/covimerage/bin/covimerage)
test_coverage: $(COVIMERAGE) build/vader | build
$(COVIMERAGE) run $(DEFAULT_VIM) -Nu test/vimrc -c 'Vader! test/**'
2017-10-05 06:47:29 +08:00
build/covimerage:
virtualenv $@
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