vim-plug/.travis.yml

61 lines
1.4 KiB
YAML
Raw Normal View History

language: ruby
2016-12-31 20:08:09 -07:00
sudo: false
env:
global:
- DEPS=$HOME/deps
- PATH=$DEPS/bin:$PATH
matrix:
include:
2016-10-16 18:23:43 -07:00
- env: ENV=vim72
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
rvm: 1.8.7
2016-10-16 18:23:43 -07:00
- env: ENV=ruby20
rvm: 2.0.0
2016-10-16 18:23:43 -07:00
- env: ENV=neovim
- env: ENV=vim8
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
mkdir -p ${DEPS}/bin
ln -s /usr/bin/vim.nox ${DEPS}/bin/vim
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
export VADER_OUTPUT_FILE=/dev/stderr
2016-10-16 18:23:43 -07:00
return
fi
C_OPTS="--prefix=$DEPS --with-features=huge --disable-gui "
case "$ENV" in
python)
C_OPTS+=--enable-pythoninterp
;;
python3)
C_OPTS+=--enable-python3interp
;;
2016-10-16 18:23:43 -07:00
ruby*)
C_OPTS+=--enable-rubyinterp
;;
esac
2014-06-22 20:57:46 -07:00
git clone --depth 1 https://github.com/vim/vim
cd vim
./configure $C_OPTS
make
make install
cd -
script: test/run !