Skip to content

Commit 82cb016

Browse files
committed
Add travis-ci integration
1 parent 7892258 commit 82cb016

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
language: vim
2+
3+
install:
4+
- git clone https://github.com/vim/vim /tmp/vim
5+
- mkdir ~/bin
6+
- cd /tmp/vim
7+
- sudo apt-get install -y gettext libncurses5-dev libacl1-dev libgpm-dev
8+
- ./configure --with-features=huge --enable-fail-if-missing --enable-pythoninterp --prefix=$HOME/bin/vim
9+
- make && make install
10+
- git clone https://github.com/junegunn/vader.vim.git
11+
- export VIM_EXE=$HOME/bin/vim/bin/vim
12+
13+
before_script:
14+
- $HOME/bin/vim/bin/vim --version
15+
16+
script:
17+
- cd test
18+
- ./run.sh > /dev/null && echo Success || echo Fail
19+
- cd ..

test/run-single-test-file.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ $# -eq 0 ]; then
99
exit
1010
fi
1111

12-
VIM_EXE="vim"
12+
: "${VIM_EXE:=vim}"
1313

1414
if hash nvim 2>/dev/null ; then
1515
VIM_EXE="nvim"

test/run.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
###############################################################################
44
# Execute all test case #
55
###############################################################################
6-
7-
VIM_EXE="vim"
6+
: "${VIM_EXE:=vim}"
87

98
# If nvim is available in PATH, then we prefer to use nvim
109
# since it works better with nodemon

0 commit comments

Comments
 (0)