1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 22:20:06 +08:00
SpaceVim/.travis.yml

46 lines
1.2 KiB
YAML
Raw Normal View History

2016-12-26 21:20:45 +08:00
language: python
cache:
2017-04-14 20:48:35 +08:00
pip: true
2016-12-26 21:20:45 +08:00
env:
2017-04-14 20:48:35 +08:00
matrix:
- LINT=vimlint-errors
2016-12-26 21:20:45 +08:00
- LINT=vimlint
- LINT=vint-errors
- LINT=vint
2017-04-14 20:32:24 +08:00
- LINT=vader
2016-12-26 21:20:45 +08:00
matrix:
2017-04-14 20:48:35 +08:00
allow_failures:
- env: LINT=vimlint
2016-12-26 21:20:45 +08:00
- env: LINT=vint
2017-04-14 20:32:24 +08:00
before_install:
2017-04-14 20:48:35 +08:00
- sudo apt-get -qq update
2017-04-14 20:32:24 +08:00
- sudo apt-get install -y vim-gtk
2016-12-26 21:20:45 +08:00
install:
2017-04-14 20:48:35 +08:00
- |
if [ "${LINT#vimlint}" != "$LINT" ]; then
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
virtualenv /tmp/vint && source /tmp/vint/bin/activate && pip install vim-vint
elif [ "${LINT#vader}" != "$LINT" ]; then
git clone https://github.com/junegunn/vader.vim.git /tmp/vader
fi
2016-12-26 21:20:45 +08:00
script:
2017-04-14 20:48:35 +08:00
- |
if [ "$LINT" = "vimlint" ]; then
sh /tmp/vimlint/bin/vimlint.sh -l /tmp/vimlint -p /tmp/vimlparser .
elif [ "$LINT" = "vimlint-errors" ]; then
sh /tmp/vimlint/bin/vimlint.sh -E -l /tmp/vimlint -p /tmp/vimlparser .
elif [ "$LINT" = "vint" ]; then
vint .
elif [ "$LINT" = "vint-errors" ]; then
vint --error .
elif [ "$LINT" = "vader" ]; then
2017-04-15 12:33:08 +08:00
vim -Nu test/test.vim -c 'Vader! test/**'
2017-04-14 20:48:35 +08:00
fi