2017-11-22 15:27:35 +08:00
|
|
|
#!/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
|
2017-11-22 15:27:35 +08:00
|
|
|
|
|
|
|
if [ "${LINT#vimlint}" != "$LINT" ]; then
|
2017-12-17 13:46:27 +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
|
2017-11-22 15:27:35 +08:00
|
|
|
elif [ "${LINT#vint}" != "$LINT" ]; then
|
2017-12-17 13:46:27 +08:00
|
|
|
pip install vim-vint
|
2017-11-22 15:27:35 +08:00
|
|
|
elif [ "${LINT#vader}" != "$LINT" ]; then
|
2017-12-17 13:46:27 +08:00
|
|
|
git clone --depth=1 https://github.com/Shougo/dein.vim.git ~/.cache/vimfiles/repos/github.com/Shougo/dein.vim
|
2017-12-17 13:53:10 +08:00
|
|
|
C_OPTS="--prefix=$DEPS --with-features=huge --disable-gui --enable-pythoninterp"
|
2017-12-17 13:46:27 +08:00
|
|
|
(git clone --depth 1 https://github.com/vim/vim /tmp/vim &&
|
|
|
|
cd /tmp/vim &&
|
|
|
|
./configure $C_OPTS &&
|
|
|
|
make install)
|
2018-01-20 22:50:39 +08:00
|
|
|
elif [ "$LINT" = "jekyll" ]; then
|
2018-01-27 01:07:02 +08:00
|
|
|
.ci/bootstrap
|
2017-11-22 15:27:35 +08:00
|
|
|
fi
|