mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 02:30:03 +08:00
49 lines
1.7 KiB
YAML
49 lines
1.7 KiB
YAML
name: build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
check:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- vimbin: vim
|
|
vimtag: ["v7.4.052", "v7.4.629", "v7.4.1689", "v8.0.0027", "v8.0.1453", "v8.1.2269"]
|
|
- 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"]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@master
|
|
- name: Install ${{ matrix.vimbin }} ${{ matrix.vimtag }}
|
|
env:
|
|
VIM_BIN: matrix.vimbin
|
|
VIM_TAG: matrix.vimtag
|
|
DEPS: ~/deps
|
|
PATH: ~/deps/bin:~/vim/bin:$PATH
|
|
run: |
|
|
.ci/install/linux.sh $VIM_BIN $VIM_TAG
|
|
- name: Review ${{ matrix.vimbin }} version
|
|
run: ${{ matrix.vimbin }} --version
|
|
- name: Run test
|
|
run: |
|
|
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 "\$PATH: \"${PATH}\""
|
|
echo "\$VIM: \"${VIM}\""
|
|
echo "================= ${VIM_BIN} version ======================"
|
|
$VIM_BIN --version
|
|
pip install covimerage
|
|
pip install 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
|
|
covimerage -vv xml --omit 'build/*'
|
|
codecov -X search gcov pycov -f coverage.xml
|