Skip to content

Commit 936ac85

Browse files
authored
Lint vimscript (wklken#371)
* Check vim * Use python3 * Specify 3.6 * Update beforehand * Add ppa * Yes * Compose * && * Split * Refactor * Chmod +x * Add pathlib * Sudo * Typing * Ci * Unique * Ci
1 parent 91755cd commit 936ac85

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.travis.yml

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
sudo: required
22
dist: trusty
33

4-
before_install:
5-
- sudo apt-get install shellcheck python vim
6-
- pip install --user vim-vint
7-
8-
script:
9-
# - vint init.vim layers/*.vim core/*.vim
10-
- shellcheck *.sh
11-
- chmod +x install.sh
12-
- git clone https://github.com/hecal3/vim-leader-guide ~/.vim/plugged/vim-leader-guide --depth=1
13-
- ./install.sh
14-
4+
before_install: ci/before_install.sh
5+
script: ci/script.sh

ci/before_install.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
sudo add-apt-repository ppa:deadsnakes/ppa -y
4+
sudo apt-get update
5+
sudo apt-get install shellcheck python3.6 -y
6+
sudo pip install vim-vint pathlib typing enum34

ci/script.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
find . -name "*.vim" -type f | grep -v "cache.vim" | while read filename; do vint -e "$filename"; done
6+
7+
shellcheck *.sh
8+
9+
./install.sh

0 commit comments

Comments
 (0)