Skip to content

Commit 226c388

Browse files
committed
Add travis support
1 parent 7f32f3a commit 226c388

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.travis.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
language: python
2+
3+
cache:
4+
pip: true
5+
6+
env:
7+
matrix:
8+
- LINT=vimlint-errors
9+
- LINT=vimlint
10+
- LINT=vint-errors
11+
- LINT=vint
12+
13+
matrix:
14+
allow_failures:
15+
- env: LINT=vimlint
16+
- env: LINT=vint
17+
18+
install:
19+
- |
20+
if [ "${LINT#vimlint}" != "$LINT" ]; then
21+
git clone --depth=1 https://github.com/syngan/vim-vimlint /tmp/vimlint
22+
git clone --depth=1 https://github.com/ynkdir/vim-vimlparser /tmp/vimlparser
23+
elif [ "${LINT#vint}" != "$LINT" ]; then
24+
virtualenv /tmp/vint && source /tmp/vint/bin/activate && pip install vim-vint
25+
fi
26+
script:
27+
- |
28+
if [ "$LINT" = "vimlint" ]; then
29+
sh /tmp/vimlint/bin/vimlint.sh -l /tmp/vimlint -p /tmp/vimlparser .
30+
elif [ "$LINT" = "vimlint-errors" ]; then
31+
sh /tmp/vimlint/bin/vimlint.sh -E -l /tmp/vimlint -p /tmp/vimlparser .
32+
elif [ "$LINT" = "vint" ]; then
33+
vint .
34+
elif [ "$LINT" = "vint-errors" ]; then
35+
vint .
36+
fi

.vintrc.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
cmdargs:
2+
# Checking more strictly
3+
severity: style_problem
4+
5+
# Enable coloring
6+
color: true
7+
8+
policies:
9+
ProhibitImplicitScopeVariable:
10+
enabled: false

0 commit comments

Comments
 (0)