1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:30:04 +08:00
SpaceVim/.ci/install.sh

37 lines
1.3 KiB
Bash
Raw Normal View History

#!/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
2018-01-20 22:50:39 +08:00
git fetch origin master:master
if [ "${LINT#vimlint}" != "$LINT" ]; then
2018-07-15 20:23:38 +08:00
git clone --depth=1 https://github.com/syngan/vim-vimlint /tmp/vimlint
git clone --depth=1 https://github.com/ynkdir/vim-vimlparser /tmp/vimlparser
elif [ "${LINT#vint}" != "$LINT" ]; then
2020-08-29 16:46:57 +08:00
pip install --pre vim-vint pathlib enum34 typing
vint --version
elif [ "${LINT#vader}" != "$LINT" ]; then
2019-10-09 22:57:03 +08:00
if [[ ! -d "$HOME/.cache/vimfiles/repos/github.com/Shougo/dein.vim" ]]; then
git clone --depth=1 https://github.com/Shougo/dein.vim.git ~/.cache/vimfiles/repos/github.com/Shougo/dein.vim
fi
.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
2019-10-09 22:57:03 +08:00
echo "\$PATH: \"${PATH}\""
echo "\$VIM: \"${VIM}\""
2019-06-29 19:36:43 +08:00
echo "================= nvim version ======================"
2019-10-09 22:57:03 +08:00
$VIM_BIN --version
2018-01-20 22:50:39 +08:00
elif [ "$LINT" = "jekyll" ]; then
2018-07-15 20:23:38 +08:00
.ci/bootstrap
fi