Skip to content
This repository has been archived by the owner on Sep 21, 2019. It is now read-only.

Commit

Permalink
Update tests env
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdalisue committed Jul 8, 2015
1 parent d067796 commit d222b02
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
test/.env
doc/tags
16 changes: 9 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ install:
- sudo apt-get install vim-nox

before_script:
- git clone https://github.com/syngan/vim-vimlint /tmp/vim-vimlint
- git clone https://github.com/ynkdir/vim-vimlparser /tmp/vim-vimlparser
- git clone https://github.com/thinca/vim-themis --branch v1.4.1 --single-branch --depth 1 /tmp/vim-themis
- git clone https://github.com/Shougo/vimproc.vim /tmp/vimproc
- export VIMLINT=/tmp/vim-vimlint
- export VIMLPARSER=/tmp/vim-vimlparser
- export VIMTHEMIS=/tmp/vim-themis
- export VIMPROC=/tmp/vimproc.vim
- git clone https://github.com/syngan/vim-vimlint --single-branch --depth 1 $VIMLINT
- git clone https://github.com/ynkdir/vim-vimlparser --single-branch --depth 1 $VIMLPARSER
- git clone https://github.com/thinca/vim-themis --branch v1.4.1 --single-branch --depth 1 $VIMTHEMIS
- git clone https://github.com/Shougo/vimproc.vim --single-branch --depth 1 $VIMPROC
- (cd /tmp/vimproc && make)

script:
- sh /tmp/vim-vimlint/bin/vimlint.sh -l /tmp/vim-vimlint -p /tmp/vim-vimlparser -e EVL103=1 -e EVL102.l:_=1 -c func_abort=1 autoload
- vim --cmd version --cmd quit
- vim --cmd "try | helptags doc/ | catch | cquit | endtry" --cmd quit
- /tmp/vim-themis/bin/themis --runtimepath /tmp/vimproc --reporter dot
- ./test/run_all.sh
4 changes: 4 additions & 0 deletions test/run_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
sh ./test/run_vimlint.sh
sh ./test/run_doc.sh
sh ./test/run_themis.sh
2 changes: 2 additions & 0 deletions test/run_doc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
vim --cmd "try | helptags doc/ | catch | cquit | endtry" --cmd quit
12 changes: 8 additions & 4 deletions test/run_themis.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env bash
themis --reporter dot \
--runtimepath $HOME/.vim/bundle/vital.vim \
--runtimepath $HOME/.vim/bundle/vimproc.vim \
$@
: ${VIMTHEMIS:=~/.vim/bundle/vim-themis}
: ${VIMPROC:=~/.vim/bundle/vimproc.vim}

# themis
sh ${VIMTHEMIS}/bin/themis \
--reporter dot \
--runtimepath ${VIMPROC} \
$@

9 changes: 9 additions & 0 deletions test/run_vimlint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
: ${VIMLINT:=~/.vim/bundle/vim-vimlint}
: ${VIMLPARSER:=~/.vim/bundle/vim-vimlparser}

# vim-vimlint
sh ${VIMLINT}/bin/vimlint.sh \
-l ${VIMLINT} -p ${VIMLPARSER} \
-e EVL103=1 -e EVL102.l:_=1 -c func_abort=1 \
autoload

0 comments on commit d222b02

Please sign in to comment.