.travis.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. if [ $(ruby -e 'puts RUBY_VERSION') = 1.9.2 ]; then
  10. sudo apt-get update -y
  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 update -y
  18. sudo apt-get install -y python2.7-dev
  19. ./configure --with-features=huge --enable-pythoninterp
  20. elif [ $(ruby -e 'puts RUBY_VERSION') = 2.1.0 ]; then
  21. sudo apt-get update -y
  22. sudo apt-get install -y python3-dev
  23. ./configure --with-features=huge --enable-python3interp
  24. else
  25. ./configure --with-features=huge --enable-rubyinterp
  26. fi
  27. make
  28. sudo make install
  29. cd -
  30. fi
  31. git config --global user.email "you@example.com"
  32. git config --global user.name "Your Name"
  33. script: |
  34. test/run !