mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 04:00:03 +08:00
build(makefile): update makefile
This commit is contained in:
parent
5b92e0271d
commit
e6e406c981
13
Makefile
13
Makefile
@ -1,6 +1,19 @@
|
|||||||
test: build/vader | build
|
test: build/vader | build
|
||||||
$(VIM_BIN) -Nu test/vimrc $(VIM_Es) -c 'Vader! test/**'
|
$(VIM_BIN) -Nu test/vimrc $(VIM_Es) -c 'Vader! test/**'
|
||||||
|
|
||||||
|
COVIMERAGE=$(shell command -v covimerage 2>/dev/null || echo build/covimerage/bin/covimerage)
|
||||||
|
|
||||||
|
test_coverage: $(COVIMERAGE) build/vader | build
|
||||||
|
$(COVIMERAGE) run --source after --source syntax --source autoload --source colors --source config --source ftplugin $(VIM_BIN) -Nu test/vimrc $(VIM_Es) -c 'Vader! test/**'
|
||||||
|
|
||||||
|
$(COVIMERAGE):
|
||||||
|
$(COVIMERAGE) run --source after --source syntax --source autoload --source colors --source config --source ftplugin $(VIM_BIN) -Nu test/vimrc $(VIM_Es) -c 'Vader! test/**'
|
||||||
|
|
||||||
|
build/covimerage:
|
||||||
|
virtualenv $@
|
||||||
|
build/covimerage/bin/covimerage: | build/covimerage
|
||||||
|
build/covimerage/bin/pip install covimerage
|
||||||
|
|
||||||
build/vader:
|
build/vader:
|
||||||
git clone --depth 1 https://github.com/junegunn/vader.vim.git $@
|
git clone --depth 1 https://github.com/junegunn/vader.vim.git $@
|
||||||
|
|
||||||
|
23
codecov.yml
Normal file
23
codecov.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
comment: off
|
||||||
|
codecov:
|
||||||
|
branch: master
|
||||||
|
coverage:
|
||||||
|
status:
|
||||||
|
patch:
|
||||||
|
default: false
|
||||||
|
project:
|
||||||
|
default: false # disable the default status that measures entire project
|
||||||
|
api: # declare a new status context "api"
|
||||||
|
target: 1% # we always want 35% coverage here
|
||||||
|
paths:
|
||||||
|
- "autoload/SpaceVim/api/" # only include coverage in "autoload/SpaceVim/api/" folder
|
||||||
|
plugins: # declare a new status context "api"
|
||||||
|
target: 15% # we always want 35% coverage here
|
||||||
|
paths:
|
||||||
|
- "autoload/SpaceVim/plugins/" # only include coverage in "autoload/SpaceVim/api/" folder
|
||||||
|
all: # declare a new status context "all"
|
||||||
|
target: 90% # we always want 35% coverage here
|
||||||
|
paths:
|
||||||
|
- "!tests/" # remove all files in "tests/"
|
||||||
|
- "!bundle/" # remove all files in "tests/"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user