mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 09:40:06 +08:00
36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ] ; then
|
||
|
if [ "$LINT" = "vimlint-errors" ] ; then
|
||
|
if [[ -f build_log ]]; then
|
||
|
if [[ -d build/GitHub.vim ]]; then
|
||
|
rm -rf build/GitHub.vim
|
||
|
fi
|
||
|
VIMLINT_LOG=`cat build_log`
|
||
|
echo "$VIMLINT_LOG"
|
||
|
git clone https://github.com/wsdjeg/GitHub.vim.git build/GitHub.vim
|
||
|
docker run -it --rm \
|
||
|
-v $PWD/.ci:/.ci \
|
||
|
-v $PWD/build:/build \
|
||
|
spacevim/vims neovim-stable -u .ci/common/github_commenter.vim
|
||
|
rm build_log
|
||
|
fi
|
||
|
elif [ "$LINT" = "vint-errors" ] ; then
|
||
|
if [[ -f build_log ]]; then
|
||
|
if [[ -d build/GitHub.vim ]]; then
|
||
|
rm -rf build/GitHub.vim
|
||
|
fi
|
||
|
VIMLINT_LOG=`cat build_log`
|
||
|
echo "$VIMLINT_LOG"
|
||
|
git clone https://github.com/wsdjeg/GitHub.vim.git build/GitHub.vim
|
||
|
docker run -it --rm \
|
||
|
-v $PWD/.ci:/.ci \
|
||
|
-v $PWD/build:/build \
|
||
|
spacevim/vims neovim-stable -u .ci/common/github_commenter.vim
|
||
|
rm build_log
|
||
|
fi
|
||
|
elif [ "$LINT" = "vader" ] ; then
|
||
|
echo ""
|
||
|
fi
|
||
|
fi
|