1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:20:04 +08:00
SpaceVim/.ci/after_failure.sh
Wang Shidong a830a3e2a4
Update travis setting (#981)
* Update travis setting

* Update after failure script

* Fix lint

* Update comment

* Test bot

* Update ci script

* Update ci

* Test lint

* Update ci

* Check var

* Use log file

* Fix lint

* Check -f

* Lint

* Fix json

* Use vim script instead

* Fixup

* quit afte comment

* Update lint

* Fix lint

* Install gvim

* Remove file

* Install vim before test

* Fix lint

* Fix github api

* Use neovim report error

* Update travis

* Fix unkonwn command

* Use origin/dev

* Update lint

* Fix unkown command

* Fix lint

* Update config

* Fix lint

* Fix cache

* Fix cache

* Fix neovim install

* Fix neovim install

* Fix install

* Use dockerfile

* Fix lint

* Update install script

* Fix lint

* Fix type

* Fix alow faile

* Fix jobs

* Fix docker

* Fix docker

* Fix makefile

* Update commenter vim script
2017-11-22 01:27:35 -06:00

36 lines
1.2 KiB
Bash
Executable File

#!/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