Skip to content

Instantly share code, notes, and snippets.

@aiya000
Last active May 22, 2016 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aiya000/4c2f429a07e843054d86299b4e9ca5ae to your computer and use it in GitHub Desktop.
Save aiya000/4c2f429a07e843054d86299b4e9ca5ae to your computer and use it in GitHub Desktop.
Travis CIのVimが古くてテストが通らないからスピリチュアルパワー使う ref: http://qiita.com/aiya000/items/f06bdaf63a72547fd0d4
language: generic
sudo: false
install:
# Prepare environment
- mkdir -p ~/.vim/bundle/repos/github.com
- mkdir ~/.vim/bundle/repos/github.com/thinca
- mkdir ~/.vim/bundle/repos/github.com/tyru
- mkdir ~/Repository
# Install needed plugins
- git clone https://github.com/thinca/vim-themis ~/.vim/bundle/repos/github.com/thinca/vim-themis
- git clone https://github.com/tyru/open-browser.vim ~/.vim/bundle/repos/github.com/tyru/open-browser.vim
- git clone https://github.com/aiya000/aref-web.vim ~/Repository/aref-web.vim
# Build just version vim to ~/vim-7.4.1689
- ( if [ ! -d ~/vim-7.4.1689/bin ]; then git clone https://github.com/vim/vim /tmp/vim && cd /tmp/vim && git checkout v7.4.1689 && ./configure --prefix=$HOME/vim-7.4.1689 && make && make install; fi )
- export THEMIS_VIM=$HOME/vim-7.4.1689/bin/vim
cache:
directories:
- $HOME/vim-7.4.1689
before_script:
- $HOME/vim-7.4.1689/bin/vim --version
script:
- ~/.vim/bundle/repos/github.com/thinca/vim-themis/bin/themis ~/Repository/aref-web.vim/test --reporter spec
branches:
- master
.
.
$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 4 2012 04:25:35)
Included patches: 1-429
.
.
$ ~/.vim/bundle/repos/github.com/thinca/vim-themis/bin/themis ~/Repository/aref-web.vim/test --reporter spec
aref-web.vim
[✓] is_supported_source_test
[✓] get_target_url_test
[✓] can_use_dump_cmd_test
[✖] have_openbrowser_vim_test
function 112() (~/Repository/aref-web.vim/test/aref_web.vim)
function <SNR>27_have_openbrowser_vim() Line:5 (~/build/aiya000/aref-web.vim/autoload/aref_web.vim)
Vim(return):E121: Undefined variable: v:false
tests 4
passes 3
fails 1
The command "~/.vim/bundle/repos/github.com/thinca/vim-themis/bin/themis ~/Repository/aref-web.vim/test --reporter spec" exited with 1.
Done. Your build exited with 1.
.
.
$ $HOME/bin/vim/bin/vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May 20 2016 19:16:45)
Included patches: 1-1689
.
.
$ ~/.vim/bundle/repos/github.com/thinca/vim-themis/bin/themis ~/Repository/aref-web.vim/test --reporter spec
aref-web.vim
[✓] is_supported_source_test
[✓] get_target_url_test
[✓] can_use_dump_cmd_test
[✓] have_openbrowser_vim_test
tests 4
passes 4
The command "~/.vim/bundle/repos/github.com/thinca/vim-themis/bin/themis ~/Repository/aref-web.vim/test --reporter spec" exited with 0.
Done. Your build exited with 0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment