From 753f7be798e81ec5cb29b84770f618e20aaf0fba Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 18 Feb 2015 16:47:17 +0900 Subject: [PATCH] Extend Travis CI build to use vim-nox on Ubuntu 12.04 --- .travis.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 682b145..08d32b8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,14 +2,22 @@ language: ruby rvm: - 1.8.7 - 2.0.0 + - 1.9.2 # Test with vim-nox package on ubuntu before_script: | - hg clone https://code.google.com/p/vim/ - cd vim - ./configure --with-features=huge --enable-rubyinterp - make - sudo make install - cd - + if [ $(ruby -e 'puts RUBY_VERSION') = 1.9.2 ]; then + sudo apt-get update -y + sudo apt-get install -y vim-nox + sudo ln -s /usr/bin/vim /usr/local/bin/vim + else + hg clone https://code.google.com/p/vim/ + cd vim + ./configure --with-features=huge --enable-rubyinterp + make + sudo make install + cd - + fi + git config --global user.email "you@example.com" git config --global user.name "Your Name"