.travis.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. language: minimal
  2. env:
  3. global:
  4. - DEPS=$HOME/deps
  5. - PATH=$DEPS/bin:$PATH
  6. jobs:
  7. include:
  8. - env: ENV=vim80-bionic
  9. dist: bionic
  10. stage: vim8
  11. - env: ENV=vim-nightly
  12. dist: trusty
  13. stage: vim8
  14. - env: ENV=neovim-stable
  15. dist: bionic
  16. addons: {apt: {packages: [neovim], sources: [{sourceline: 'ppa:neovim-ppa/stable'}]}}
  17. stage: neovim
  18. - env: ENV=neovim-nightly
  19. dist: bionic
  20. addons: {apt: {packages: [neovim], sources: [{sourceline: 'ppa:neovim-ppa/unstable'}]}}
  21. stage: neovim
  22. - env: ENV=vim74-trusty-python
  23. dist: trusty
  24. stage: vim74
  25. - env: ENV=vim74-xenial-python3
  26. dist: xenial
  27. stage: vim74
  28. - env: ENV=vim74-trusty-ruby
  29. dist: trusty
  30. addons: {apt: {packages: [vim-nox]}}
  31. stage: vim74
  32. - env: ENV=vim74-xenial-ruby
  33. dist: xenial
  34. addons: {apt: {packages: [vim-nox]}}
  35. stage: vim74
  36. - env: ENV=osx-highsierra
  37. os: osx
  38. osx_image: xcode9.4
  39. stage: vim8
  40. install: |
  41. git config --global user.email "you@example.com"
  42. git config --global user.name "Your Name"
  43. C_OPTS="--prefix=$DEPS --with-features=huge --disable-gui "
  44. case "$ENV" in
  45. vim-*)
  46. ;;
  47. neovim-*)
  48. mkdir -p ${DEPS}/bin
  49. ln -s /usr/bin/nvim ${DEPS}/bin/vim
  50. export VADER_OUTPUT_FILE=/dev/stderr
  51. return
  52. ;;
  53. vim74-* | vim80-*)
  54. mkdir -p ${DEPS}/bin
  55. ln -s /usr/bin/vim.nox ${DEPS}/bin/vim
  56. return
  57. ;;
  58. *)
  59. return
  60. ;;
  61. esac
  62. git clone --depth 1 https://github.com/vim/vim
  63. cd vim
  64. export PATH=/usr/bin:$PATH
  65. ./configure $C_OPTS
  66. make
  67. make install
  68. cd -
  69. script: test/run !