.travis.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. language: ruby
  2. rvm:
  3. - 1.8.7
  4. - 1.9.2 # Test with vim-nox package on ubuntu
  5. - 1.9.3 # Test against python installer
  6. - 2.0.0
  7. - 2.1.0 # Test against python3 installer
  8. before_script: |
  9. sudo apt-get update -y
  10. if [ $(ruby -e 'puts RUBY_VERSION') = 1.9.2 ]; then
  11. sudo apt-get install -y vim-nox
  12. sudo ln -s /usr/bin/vim /usr/local/bin/vim
  13. else
  14. git clone --depth 1 https://github.com/vim/vim
  15. cd vim
  16. if [ $(ruby -e 'puts RUBY_VERSION') = 1.9.3 ]; then
  17. sudo apt-get install -y python2.7-dev
  18. ./configure --disable-gui --with-features=huge --enable-pythoninterp
  19. elif [ $(ruby -e 'puts RUBY_VERSION') = 2.1.0 ]; then
  20. sudo apt-get install -y python3-dev
  21. ./configure --disable-gui --with-features=huge --enable-python3interp
  22. else
  23. ./configure --disable-gui --with-features=huge --enable-rubyinterp
  24. fi
  25. make
  26. sudo make install
  27. cd -
  28. fi
  29. git config --global user.email "you@example.com"
  30. git config --global user.name "Your Name"
  31. script: |
  32. test/run !