Skip to content

Commit

Permalink
Lint vimscript (wklken#371)
Browse files Browse the repository at this point in the history
* Check vim

* Use python3

* Specify 3.6

* Update beforehand

* Add ppa

* Yes

* Compose

* &&

* Split

* Refactor

* Chmod +x

* Add pathlib

* Sudo

* Typing

* Ci

* Unique

* Ci
  • Loading branch information
liuchengxu authored Nov 25, 2018
1 parent 91755cd commit 936ac85
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
sudo: required
dist: trusty

before_install:
- sudo apt-get install shellcheck python vim
- pip install --user vim-vint

script:
# - vint init.vim layers/*.vim core/*.vim
- shellcheck *.sh
- chmod +x install.sh
- git clone https://github.com/hecal3/vim-leader-guide ~/.vim/plugged/vim-leader-guide --depth=1
- ./install.sh

before_install: ci/before_install.sh
script: ci/script.sh
6 changes: 6 additions & 0 deletions ci/before_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt-get update
sudo apt-get install shellcheck python3.6 -y
sudo pip install vim-vint pathlib typing enum34
9 changes: 9 additions & 0 deletions ci/script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -e

find . -name "*.vim" -type f | grep -v "cache.vim" | while read filename; do vint -e "$filename"; done

shellcheck *.sh

./install.sh

0 comments on commit 936ac85

Please sign in to comment.