.travis.yml 905 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. language: ruby
  2. rvm:
  3. - 1.8.7
  4. - 2.0.0
  5. env:
  6. - ENV=nox
  7. - ENV=python
  8. - ENV=python3
  9. - ENV=ruby
  10. matrix:
  11. exclude:
  12. - rvm: 2.0.0
  13. include:
  14. - rvm: 2.0.0
  15. env: ENV=ruby
  16. install: |
  17. git config --global user.email "you@example.com"
  18. git config --global user.name "Your Name"
  19. sudo apt-get update -y
  20. if [ "$ENV" == "nox" ]; then
  21. sudo apt-get install -y vim-nox
  22. sudo ln -s /usr/bin/vim /usr/local/bin/vim
  23. return
  24. fi
  25. C_OPTS="--with-features=huge --disable-gui "
  26. case "$ENV" in
  27. python)
  28. PACKS=python2.7-dev
  29. C_OPtS+=--enable-pythoninterp
  30. ;;
  31. python3)
  32. PACKS=python3-dev
  33. C_OPtS+=--enable-python3interp
  34. ;;
  35. ruby)
  36. C_OPTS+=--enable-rubyinterp
  37. ;;
  38. esac
  39. sudo apt-get install -y $PACKS
  40. git clone --depth 1 https://github.com/vim/vim
  41. cd vim
  42. ./configure $C_OPTS
  43. make
  44. sudo make install
  45. cd -
  46. script: test/run !