2014-08-04 09:27:06 +02:00
|
|
|
language: ruby
|
2017-01-01 04:08:09 +01:00
|
|
|
sudo: false
|
2015-09-11 14:57:51 +02:00
|
|
|
env:
|
2015-11-28 16:00:49 +01:00
|
|
|
global:
|
|
|
|
- DEPS=$HOME/deps
|
|
|
|
- PATH=$DEPS/bin:$PATH
|
2015-09-11 14:57:51 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
2016-10-17 03:23:43 +02:00
|
|
|
- env: ENV=vim72
|
2015-11-28 16:00:49 +01:00
|
|
|
rvm: 1.8.7
|
|
|
|
addons: { apt: { packages: [vim-nox] } }
|
|
|
|
- env: ENV=python
|
|
|
|
rvm: 1.8.7
|
|
|
|
addons: { apt: { packages: [python2.7-dev] } }
|
|
|
|
- env: ENV=python3
|
|
|
|
rvm: 1.8.7
|
|
|
|
addons: { apt: { packages: [python3-dev] } }
|
2016-10-17 03:23:43 +02:00
|
|
|
- env: ENV=ruby18
|
2015-11-28 16:00:49 +01:00
|
|
|
rvm: 1.8.7
|
2016-10-17 03:23:43 +02:00
|
|
|
- env: ENV=ruby20
|
2015-11-28 16:00:49 +01:00
|
|
|
rvm: 2.0.0
|
2016-10-17 03:23:43 +02:00
|
|
|
- env: ENV=neovim
|
2016-10-13 06:17:17 +02:00
|
|
|
- env: ENV=vim8
|
2015-09-11 14:57:51 +02:00
|
|
|
install: |
|
|
|
|
git config --global user.email "you@example.com"
|
|
|
|
git config --global user.name "Your Name"
|
|
|
|
|
2016-10-17 03:23:43 +02:00
|
|
|
if [ "$ENV" == "vim72" ]; then
|
2015-11-28 16:00:49 +01:00
|
|
|
mkdir -p ${DEPS}/bin
|
|
|
|
ln -s /usr/bin/vim.nox ${DEPS}/bin/vim
|
2015-09-11 14:57:51 +02:00
|
|
|
return
|
2016-10-17 03:23:43 +02:00
|
|
|
elif [ "$ENV" == "neovim" ]; then
|
2017-01-01 04:08:09 +01:00
|
|
|
# https://github.com/neovim/bot-ci#nightly-builds
|
|
|
|
eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64"
|
2016-10-17 03:23:43 +02:00
|
|
|
mkdir -p ${DEPS}/bin
|
2017-01-01 04:08:09 +01:00
|
|
|
ln -s $(which nvim) ${DEPS}/bin/vim
|
2017-04-16 19:47:15 +02:00
|
|
|
export VADER_OUTPUT_FILE=/dev/stderr
|
2016-10-17 03:23:43 +02:00
|
|
|
return
|
2015-02-18 08:47:17 +01:00
|
|
|
fi
|
|
|
|
|
2015-11-28 16:00:49 +01:00
|
|
|
C_OPTS="--prefix=$DEPS --with-features=huge --disable-gui "
|
2015-09-11 14:57:51 +02:00
|
|
|
case "$ENV" in
|
|
|
|
python)
|
2015-11-28 16:00:49 +01:00
|
|
|
C_OPTS+=--enable-pythoninterp
|
2015-09-11 14:57:51 +02:00
|
|
|
;;
|
|
|
|
python3)
|
2015-11-28 16:00:49 +01:00
|
|
|
C_OPTS+=--enable-python3interp
|
2015-09-11 14:57:51 +02:00
|
|
|
;;
|
2016-10-17 03:23:43 +02:00
|
|
|
ruby*)
|
2015-09-11 14:57:51 +02:00
|
|
|
C_OPTS+=--enable-rubyinterp
|
|
|
|
;;
|
|
|
|
esac
|
2014-06-23 05:57:46 +02:00
|
|
|
|
2015-09-11 14:57:51 +02:00
|
|
|
git clone --depth 1 https://github.com/vim/vim
|
|
|
|
cd vim
|
|
|
|
./configure $C_OPTS
|
|
|
|
make
|
2015-11-28 16:00:49 +01:00
|
|
|
make install
|
2015-09-11 14:57:51 +02:00
|
|
|
cd -
|
|
|
|
script: test/run !
|