1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 05:20:04 +08:00
SpaceVim/.ci/script.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

33 lines
880 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
if [ "$LINT" = "vimlint" ]; then
for file in $(git diff --name-only HEAD dev | grep .vim$);
do
sh /tmp/vimlint/bin/vimlint.sh -l /tmp/vimlint -p /tmp/vimlparser $file;
done
elif [ "$LINT" = "vimlint-errors" ]; then
if [[ -f build_log ]]; then
rm build_log
fi
for file in $(git diff --name-only HEAD dev | grep .vim$);
do
/tmp/vimlint/bin/vimlint.sh -E -l /tmp/vimlint -p /tmp/vimlparser $file >> build_log;
done
if [[ -f build_log ]]; then
cat build_log
exit 2
fi
elif [ "$LINT" = "vint" ]; then
vint .
elif [ "$LINT" = "vint-errors" ]; then
vint --error .
elif [ "$LINT" = "vader" ]; then
pip install covimerage
make test_coverage
covimerage -vv xml --omit 'build/*'
pip install codecov
codecov -X search gcov pycov -f coverage.xml
fi
set +x