2014-08-04 00:27:06 -07:00
|
|
|
language: ruby
|
2016-12-31 20:08:09 -07:00
|
|
|
sudo: false
|
2015-09-11 05:57:51 -07:00
|
|
|
env:
|
2015-11-28 08:00:49 -07:00
|
|
|
global:
|
|
|
|
- DEPS=$HOME/deps
|
|
|
|
- PATH=$DEPS/bin:$PATH
|
2015-09-11 05:57:51 -07:00
|
|
|
matrix:
|
|
|
|
include:
|
2016-10-16 18:23:43 -07:00
|
|
|
- env: ENV=vim72
|
2015-11-28 08:00:49 -07: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-16 18:23:43 -07:00
|
|
|
- env: ENV=ruby18
|
2015-11-28 08:00:49 -07:00
|
|
|
rvm: 1.8.7
|
2016-10-16 18:23:43 -07:00
|
|
|
- env: ENV=ruby20
|
2015-11-28 08:00:49 -07:00
|
|
|
rvm: 2.0.0
|
2016-10-16 18:23:43 -07:00
|
|
|
- env: ENV=neovim
|
2016-10-12 21:17:17 -07:00
|
|
|
- env: ENV=vim8
|
2015-09-11 05:57:51 -07:00
|
|
|
install: |
|
|
|
|
git config --global user.email "you@example.com"
|
|
|
|
git config --global user.name "Your Name"
|
|
|
|
|
2016-10-16 18:23:43 -07:00
|
|
|
if [ "$ENV" == "vim72" ]; then
|
2015-11-28 08:00:49 -07:00
|
|
|
mkdir -p ${DEPS}/bin
|
|
|
|
ln -s /usr/bin/vim.nox ${DEPS}/bin/vim
|
2015-09-11 05:57:51 -07:00
|
|
|
return
|
2016-10-16 18:23:43 -07:00
|
|
|
elif [ "$ENV" == "neovim" ]; then
|
2016-12-31 20:08:09 -07: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-16 18:23:43 -07:00
|
|
|
mkdir -p ${DEPS}/bin
|
2016-12-31 20:08:09 -07:00
|
|
|
ln -s $(which nvim) ${DEPS}/bin/vim
|
2017-04-16 10:47:15 -07:00
|
|
|
export VADER_OUTPUT_FILE=/dev/stderr
|
2016-10-16 18:23:43 -07:00
|
|
|
return
|
2015-02-18 00:47:17 -07:00
|
|
|
fi
|
|
|
|
|
2015-11-28 08:00:49 -07:00
|
|
|
C_OPTS="--prefix=$DEPS --with-features=huge --disable-gui "
|
2015-09-11 05:57:51 -07:00
|
|
|
case "$ENV" in
|
|
|
|
python)
|
2015-11-28 08:00:49 -07:00
|
|
|
C_OPTS+=--enable-pythoninterp
|
2015-09-11 05:57:51 -07:00
|
|
|
;;
|
|
|
|
python3)
|
2015-11-28 08:00:49 -07:00
|
|
|
C_OPTS+=--enable-python3interp
|
2015-09-11 05:57:51 -07:00
|
|
|
;;
|
2016-10-16 18:23:43 -07:00
|
|
|
ruby*)
|
2015-09-11 05:57:51 -07:00
|
|
|
C_OPTS+=--enable-rubyinterp
|
|
|
|
;;
|
|
|
|
esac
|
2014-06-22 20:57:46 -07:00
|
|
|
|
2015-09-11 05:57:51 -07:00
|
|
|
git clone --depth 1 https://github.com/vim/vim
|
|
|
|
cd vim
|
|
|
|
./configure $C_OPTS
|
|
|
|
make
|
2015-11-28 08:00:49 -07:00
|
|
|
make install
|
2015-09-11 05:57:51 -07:00
|
|
|
cd -
|
|
|
|
script: test/run !
|