mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:00:04 +08:00
Fix configuration path (#4097)
This commit is contained in:
parent
cf62c149f9
commit
52340e077b
@ -1,20 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Fail on unset variables and command errors
|
|
||||||
set -ue -o pipefail
|
|
||||||
|
|
||||||
# Prevent commands misbehaving due to locale differences
|
|
||||||
export LC_ALL=C
|
|
||||||
|
|
||||||
.ci/install/linux.sh $VIM_BIN $VIM_TAG
|
|
||||||
if [ "$VIM_BIN" = "nvim" ]; then
|
|
||||||
export PATH="${DEPS}/_neovim/${VIM_TAG}/bin:${PATH}"
|
|
||||||
export VIM="${DEPS}/_neovim/${VIM_TAG}/share/nvim/runtime"
|
|
||||||
else
|
|
||||||
export PATH="${DEPS}/_vim/${VIM_TAG}/bin:${PATH}"
|
|
||||||
export VIM="${DEPS}/_vim/${VIM_TAG}/share/vim"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "\$VIM: \"${VIM}\""
|
|
||||||
echo "================= nvim version ======================"
|
|
||||||
$VIM_BIN --version
|
|
@ -1,3 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Fail on unset variables and command errors
|
||||||
|
set -ue -o pipefail
|
||||||
|
|
||||||
|
# Prevent commands misbehaving due to locale differences
|
||||||
|
export LC_ALL=C
|
||||||
|
|
||||||
install_vim() {
|
install_vim() {
|
||||||
local URL=https://github.com/vim/vim
|
local URL=https://github.com/vim/vim
|
||||||
local tag=$1
|
local tag=$1
|
||||||
|
26
.github/workflows/check.yml
vendored
26
.github/workflows/check.yml
vendored
@ -9,19 +9,24 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- vimbin: vim
|
- vimbin: vim
|
||||||
vimtag: ["v7.4.052", "v7.4.629", "v7.4.1689", "v8.0.0027", "v8.0.1453", "v8.1.2269"]
|
vimtag: v8.1.2269
|
||||||
|
# vimtag: ["v7.4.052", "v7.4.629", "v7.4.1689", "v8.0.0027", "v8.0.1453", "v8.1.2269"]
|
||||||
- vimbin: nvim
|
- vimbin: nvim
|
||||||
vimtag: ["v0.4.3", "v0.4.3", "v0.4.3", "v0.4.2", "v0.3.8", "v0.3.7", "v0.3.5", "v0.3.4", "v0.3.3", "v0.3.2", "v0.3.1", "v0.3.0"]
|
vimtag: v0.4.4
|
||||||
runs-on: ubuntu-latest
|
# vimtag: ["v0.4.3", "v0.4.3", "v0.4.3", "v0.4.2", "v0.3.8", "v0.3.7", "v0.3.5", "v0.3.4", "v0.3.3", "v0.3.2", "v0.3.1", "v0.3.0"]
|
||||||
|
runs-on: ubuntu-16.04
|
||||||
|
env:
|
||||||
|
VIM_BIN: ${{ matrix.vimbin }}
|
||||||
|
VIM_TAG: ${{ matrix.vimtag }}
|
||||||
|
DEPS: /home/runner/work/SpaceVim/deps
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y autoconf automake build-essential cmake gcc-multilib gettext gperf libtool-bin locales ninja-build pkg-config unzip
|
||||||
- name: Install ${{ matrix.vimbin }} ${{ matrix.vimtag }}
|
- name: Install ${{ matrix.vimbin }} ${{ matrix.vimtag }}
|
||||||
env:
|
|
||||||
VIM_BIN: matrix.vimbin
|
|
||||||
VIM_TAG: matrix.vimtag
|
|
||||||
DEPS: ~/deps
|
|
||||||
PATH: ~/deps/bin:~/vim/bin:$PATH
|
|
||||||
run: |
|
run: |
|
||||||
.ci/install/linux.sh $VIM_BIN $VIM_TAG
|
.ci/install/linux.sh $VIM_BIN $VIM_TAG
|
||||||
- name: Review ${{ matrix.vimbin }} version
|
- name: Review ${{ matrix.vimbin }} version
|
||||||
@ -40,9 +45,8 @@ jobs:
|
|||||||
echo "\$VIM: \"${VIM}\""
|
echo "\$VIM: \"${VIM}\""
|
||||||
echo "================= ${VIM_BIN} version ======================"
|
echo "================= ${VIM_BIN} version ======================"
|
||||||
$VIM_BIN --version
|
$VIM_BIN --version
|
||||||
pip install covimerage
|
pip install --upgrade "pip < 21.0"
|
||||||
pip install codecov
|
pip install covimerage virtualenv codecov
|
||||||
python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags&~os.O_NONBLOCK);'
|
|
||||||
make test_coverage
|
make test_coverage
|
||||||
covimerage -vv xml --omit 'build/*'
|
covimerage -vv xml --omit 'build/*'
|
||||||
codecov -X search gcov pycov -f coverage.xml
|
codecov -X search gcov pycov -f coverage.xml
|
||||||
|
@ -7,6 +7,8 @@ Execute ( SpaceVim api: file.fticon ):
|
|||||||
Execute ( SpaceVim api: file.unify_path ):
|
Execute ( SpaceVim api: file.unify_path ):
|
||||||
let path = fnamemodify('.SpaceVim.d/init.vim', ':p')
|
let path = fnamemodify('.SpaceVim.d/init.vim', ':p')
|
||||||
AssertEqual file.unify_path(path, ':p'), fnamemodify('.SpaceVim.d/init.vim', ':p:gs?[\\/]?/?')
|
AssertEqual file.unify_path(path, ':p'), fnamemodify('.SpaceVim.d/init.vim', ':p:gs?[\\/]?/?')
|
||||||
|
let path = '~/.SpaceVim.d'
|
||||||
|
AssertEqual file.unify_path(path, ':p')[-1:], '/'
|
||||||
|
|
||||||
Execute ( SpaceVim api: file.findfile ):
|
Execute ( SpaceVim api: file.findfile ):
|
||||||
let path = fnamemodify('.SpaceVim.d/init.vim', ':p')
|
let path = fnamemodify('.SpaceVim.d/init.vim', ':p')
|
||||||
|
Loading…
Reference in New Issue
Block a user