1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:20:06 +08:00

Makefile: fix covimerage integration: use installed

This commit is contained in:
Daniel Hahler 2017-11-23 15:01:50 +01:00
parent 65ba9b4dc4
commit e5c3c6e6fa

View File

@ -1,6 +1,6 @@
DOCKER = docker run -it --rm -v $(PWD):/testplugin -v $(PWD)/test:/test -v $(PWD)/build:/build "spacevim/vims"
ifeq ($(VIM),nvim)
ifeq ($(VIM),nvim)
DEFAULT_VIM:=$(DOCKER) neovim-stable
else
DEFAULT_VIM:=$(DOCKER) vim8
@ -9,7 +9,7 @@ endif
test: build/vader | build
$(DEFAULT_VIM) -Nu test/vimrc -c 'Vader! test/**'
COVIMERAGE=$(shell command -v ccovimerage 2>/dev/null || echo build/covimerage/bin/covimerage)
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/**'