1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:40:06 +08:00
SpaceVim/Makefile

27 lines
870 B
Makefile
Raw Normal View History

2017-10-05 06:21:24 +08:00
test: build/vader | build
2022-04-11 16:04:35 +08:00
$(VIM_BIN) -Nu test/vimrc $(VIM_Es) -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
2022-04-11 16:04:35 +08:00
$(COVIMERAGE) run --source after --source syntax --source autoload --source colors --source config --source ftplugin $(VIM_BIN) -Nu test/vimrc $(VIM_Es) -c 'Vader! test/**'
2017-10-05 06:47:29 +08:00
2021-08-21 13:21:11 +08:00
$(COVIMERAGE):
2022-04-11 16:04:35 +08:00
$(COVIMERAGE) run --source after --source syntax --source autoload --source colors --source config --source ftplugin $(VIM_BIN) -Nu test/vimrc $(VIM_Es) -c 'Vader! test/**'
2021-08-21 13:21:11 +08:00
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