mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 07:20:04 +08:00
test(win): fix win test
This commit is contained in:
parent
14d9c8bb55
commit
df7925fc4d
@ -38,6 +38,7 @@ function install_nvim($ver)
|
||||
$Env:VIM_BIN = $Env:DEPS + '\nvim-win64\bin\nvim.exe'
|
||||
|
||||
}
|
||||
echo "VIM_BIN is: $Env:VIM_BIN"
|
||||
}
|
||||
|
||||
function download_lua()
|
||||
@ -52,11 +53,11 @@ function download_lua()
|
||||
if ($Env:VIM_BIN.StartsWith("nvim"))
|
||||
{
|
||||
mkdir $Env:DEPS
|
||||
install_nvim $Env:VIM_TAG
|
||||
install_nvim $Env:VIM_TAG
|
||||
}
|
||||
elseif ($Env:VIM_BIN.StartsWith("vim"))
|
||||
{
|
||||
mkdir $Env:DEPS
|
||||
install_vim $Env:VIM_TAG
|
||||
download_lua
|
||||
install_vim $Env:VIM_TAG
|
||||
download_lua
|
||||
}
|
||||
|
12
.github/workflows/check.yml
vendored
12
.github/workflows/check.yml
vendored
@ -181,7 +181,7 @@ jobs:
|
||||
run: |
|
||||
if ($Env:VIM_BIN.StartsWith("nvim"))
|
||||
{
|
||||
if (Test-Path '$DEPS\Neovim\bin\nvim.exe') {
|
||||
if (Test-Path $env:DEPS\Neovim\bin ) {
|
||||
$Env:PATH = $Env:DEPS + '\Neovim\bin\;' + $Env:PATH
|
||||
$Env:VIM = $Env:DEPS + '\Neovim\share\nvim'
|
||||
}else{
|
||||
@ -194,10 +194,6 @@ jobs:
|
||||
$Env:PATH = $Env:DEPS + '\vim\vim82\;' + $Env:PATH
|
||||
$Env:VIM = $Env:DEPS + '\vim'
|
||||
}
|
||||
$VIM_BIN --version
|
||||
pip3 install --upgrade "pip < 21.0"
|
||||
pip3 install 'click<8.0.0'
|
||||
pip3 install covimerage virtualenv codecov
|
||||
make test_coverage
|
||||
covimerage -vv xml --omit 'build/*' --omit 'bundle/*'
|
||||
codecov -X search gcov pycov -f coverage.xml
|
||||
echo $Env:PATH
|
||||
echo $Env:VIM
|
||||
make test
|
||||
|
9
test/lua/data/toml.vader
Normal file
9
test/lua/data/toml.vader
Normal file
@ -0,0 +1,9 @@
|
||||
Execute ( SpaceVim lua api: data#toml ):
|
||||
if !has('nvim-0.5.0')
|
||||
finish
|
||||
endif
|
||||
let cmp = SpaceVim#api#import('vim#compatible')
|
||||
lua sp_toml = require('spacevim.api').import('data.toml')
|
||||
AssertEqual cmp.luaeval("sp_toml.parse_file('mode/basic.toml').options.colorscheme"), 'gruvbox'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user