mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 14:00:05 +08:00
fix(vader): fix vader test for vim
This commit is contained in:
parent
040cb825c3
commit
59a3ba86be
15
.github/workflows/check.yml
vendored
15
.github/workflows/check.yml
vendored
@ -12,12 +12,21 @@ jobs:
|
|||||||
vimtag: nightly
|
vimtag: nightly
|
||||||
- vimbin: vim
|
- vimbin: vim
|
||||||
vimtag: v7.4.052
|
vimtag: v7.4.052
|
||||||
|
disable_es: true
|
||||||
- vimbin: vim
|
- vimbin: vim
|
||||||
vimtag: v7.4.629
|
vimtag: v7.4.629
|
||||||
|
disable_es: true
|
||||||
- vimbin: vim
|
- vimbin: vim
|
||||||
vimtag: v7.4.1689
|
vimtag: v7.4.1689
|
||||||
|
disable_es: true
|
||||||
- vimbin: vim
|
- vimbin: vim
|
||||||
vimtag: v8.0.0027
|
vimtag: v8.0.0027
|
||||||
|
disable_es: true
|
||||||
|
- vimbin: vim
|
||||||
|
vimtag: v8.0.0183
|
||||||
|
disable_es: true
|
||||||
|
- vimbin: vim
|
||||||
|
vimtag: v8.0.0184
|
||||||
- vimbin: vim
|
- vimbin: vim
|
||||||
vimtag: v8.0.1453
|
vimtag: v8.0.1453
|
||||||
- vimbin: vim
|
- vimbin: vim
|
||||||
@ -51,6 +60,7 @@ jobs:
|
|||||||
VIM_BIN: ${{ matrix.vimbin }}
|
VIM_BIN: ${{ matrix.vimbin }}
|
||||||
VIM_TAG: ${{ matrix.vimtag }}
|
VIM_TAG: ${{ matrix.vimtag }}
|
||||||
DEPS: /home/runner/work/SpaceVim/deps
|
DEPS: /home/runner/work/SpaceVim/deps
|
||||||
|
DISABLE_ES: ${{ matrix.disable_es }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
@ -70,6 +80,11 @@ jobs:
|
|||||||
export PATH="${DEPS}/_vim/${VIM_TAG}/bin:${PATH}"
|
export PATH="${DEPS}/_vim/${VIM_TAG}/bin:${PATH}"
|
||||||
export VIM="${DEPS}/_vim/${VIM_TAG}/share/vim"
|
export VIM="${DEPS}/_vim/${VIM_TAG}/share/vim"
|
||||||
fi
|
fi
|
||||||
|
if [ "$DISABLE_ES" = "true" ]; then
|
||||||
|
export VIM_Es=""
|
||||||
|
else
|
||||||
|
export VIM_Es="-Es"
|
||||||
|
fi
|
||||||
export PATH="/home/runner/.local/bin:${PATH}"
|
export PATH="/home/runner/.local/bin:${PATH}"
|
||||||
echo "\$PATH: \"${PATH}\""
|
echo "\$PATH: \"${PATH}\""
|
||||||
echo "\$VIM: \"${VIM}\""
|
echo "\$VIM: \"${VIM}\""
|
||||||
|
6
Makefile
6
Makefile
@ -1,13 +1,13 @@
|
|||||||
test: build/vader | build
|
test: build/vader | build
|
||||||
$(VIM_BIN) -Nu test/vimrc -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)
|
COVIMERAGE=$(shell command -v covimerage 2>/dev/null || echo build/covimerage/bin/covimerage)
|
||||||
|
|
||||||
test_coverage: $(COVIMERAGE) build/vader | build
|
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 -Es -c 'Vader! test/**'
|
$(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):
|
||||||
$(COVIMERAGE) run --source after --source syntax --source autoload --source colors --source config --source ftplugin $(VIM_BIN) -Nu test/vimrc -Es -c 'Vader! test/**'
|
$(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:
|
build/covimerage:
|
||||||
virtualenv $@
|
virtualenv $@
|
||||||
|
Loading…
Reference in New Issue
Block a user