2015-07-05 00:52:36 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -o pipefail
|
|
|
|
|
2017-03-31 07:39:18 -07:00
|
|
|
if [[ "${CI_TARGET}" == lint ]]; then
|
2015-07-05 00:52:36 -07:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
|
|
|
|
brew install gettext
|
2016-07-17 02:40:28 -07:00
|
|
|
brew reinstall -s libtool
|
2015-07-05 00:52:36 -07:00
|
|
|
fi
|
|
|
|
|
2016-07-03 01:35:16 -07:00
|
|
|
# Use default CC to avoid compilation problems when installing Python modules.
|
2015-09-22 05:36:15 -07:00
|
|
|
echo "Install neovim module and coveralls for Python 2."
|
2016-07-03 01:35:16 -07:00
|
|
|
CC=cc pip2.7 -q install --user --upgrade neovim cpp-coveralls
|
2015-09-22 05:36:15 -07:00
|
|
|
|
|
|
|
echo "Install neovim module for Python 3."
|
2017-09-10 04:53:26 -07:00
|
|
|
# Allow failure. pyenv pip3 on travis is broken:
|
|
|
|
# https://github.com/travis-ci/travis-ci/issues/8363
|
|
|
|
CC=cc pip3 -q install --user --upgrade neovim || true
|
2016-07-02 21:51:43 -07:00
|
|
|
|
|
|
|
echo "Install neovim RubyGem."
|
|
|
|
gem install --no-document --version ">= 0.2.0" neovim
|
2017-11-28 23:50:11 -07:00
|
|
|
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == linux ]]; then
|
|
|
|
echo "Install neovim npm package"
|
|
|
|
npm install -g neovim
|
|
|
|
fi
|