1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 12:00:05 +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
docker pull spacevim/vims
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
2018-07-15 20:23:38 +08:00
pip install vim-vint pathlib enum34 typing
elif [ "${LINT#vader}" != "$LINT" ]; then
2018-07-15 20:23:38 +08:00
git clone --depth=1 https://github.com/Shougo/dein.vim.git ~/.cache/vimfiles/repos/github.com/Shougo/dein.vim
2019-06-29 19:21:42 +08:00
if [[ ! -d "${DEPS}/_neovim_${NVIM_TAG}" ]]; then
mkdir -p "${DEPS}/_neovim_${NVIM_TAG}"
wget -q -O - https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim-${TRAVIS_OS_NAME}64.tar.gz \
| tar xzf - --strip-components=1 -C "${DEPS}/_neovim_${NVIM_TAG}"
fi
2019-06-29 19:21:42 +08:00
export PATH="${DEPS}/_neovim_${NVIM_TAG}/bin:${PATH}"
echo "\$PATH: \"${PATH}\""
2019-06-29 19:21:42 +08:00
export VIM="${DEPS}/_neovim_${NVIM_TAG}/share/nvim/runtime"
echo "\$VIM: \"${VIM}\""
2019-06-29 19:36:43 +08:00
echo "================= nvim version ======================"
nvim --version
2019-06-29 19:36:43 +08:00
echo "================= lua version ======================"
2019-06-29 19:40:58 +08:00
lua -v
2018-01-20 22:50:39 +08:00
elif [ "$LINT" = "jekyll" ]; then
2018-07-15 20:23:38 +08:00
.ci/bootstrap
fi