2021-02-16 22:40:12 +08:00
|
|
|
name: build
|
2021-02-16 21:28:22 +08:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-02-16 22:40:12 +08:00
|
|
|
include:
|
|
|
|
- vimbin: vim
|
2021-02-17 23:15:18 +08:00
|
|
|
vimtag: v8.1.2269
|
|
|
|
# vimtag: ["v7.4.052", "v7.4.629", "v7.4.1689", "v8.0.0027", "v8.0.1453", "v8.1.2269"]
|
2021-02-16 22:40:12 +08:00
|
|
|
- vimbin: nvim
|
2021-02-17 23:15:18 +08:00
|
|
|
vimtag: v0.4.4
|
|
|
|
# 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"]
|
2021-02-17 23:31:35 +08:00
|
|
|
runs-on: ubuntu-latest
|
2021-02-17 23:15:18 +08:00
|
|
|
env:
|
|
|
|
VIM_BIN: ${{ matrix.vimbin }}
|
|
|
|
VIM_TAG: ${{ matrix.vimtag }}
|
|
|
|
DEPS: /home/runner/work/SpaceVim/deps
|
2021-02-16 21:28:22 +08:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@master
|
2021-02-17 23:15:18 +08:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2021-02-17 23:25:03 +08:00
|
|
|
sudo apt-get install -y autoconf automake build-essential cmake gcc-multilib gettext gperf libtool-bin locales ninja-build pkg-config unzip python3-pip python-pip libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev python3-dev ruby-dev lua5.1 liblua5.1-dev libperl-dev ninja-build
|
2021-02-16 22:40:12 +08:00
|
|
|
- name: Install ${{ matrix.vimbin }} ${{ matrix.vimtag }}
|
2021-02-16 21:28:22 +08:00
|
|
|
run: |
|
2021-02-16 22:40:12 +08:00
|
|
|
.ci/install/linux.sh $VIM_BIN $VIM_TAG
|
|
|
|
- name: Run test
|
2021-02-16 21:28:22 +08:00
|
|
|
run: |
|
2021-02-16 22:40:12 +08:00
|
|
|
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
|
2021-02-17 23:40:31 +08:00
|
|
|
export PATH="/home/runner/.local/bin:${PATH}"
|
2021-02-16 22:40:12 +08:00
|
|
|
echo "\$PATH: \"${PATH}\""
|
|
|
|
echo "\$VIM: \"${VIM}\""
|
|
|
|
echo "================= ${VIM_BIN} version ======================"
|
|
|
|
$VIM_BIN --version
|
2021-02-17 23:31:35 +08:00
|
|
|
pip3 install --upgrade "pip < 21.0"
|
2021-02-17 23:25:03 +08:00
|
|
|
pip3 install covimerage virtualenv codecov
|
2021-02-16 22:40:12 +08:00
|
|
|
make test_coverage
|
|
|
|
covimerage -vv xml --omit 'build/*'
|
|
|
|
codecov -X search gcov pycov -f coverage.xml
|