aboutsummaryrefslogtreecommitdiff
path: root/ci/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/install.sh')
-rwxr-xr-xci/install.sh20
1 files changed, 14 insertions, 6 deletions
diff --git a/ci/install.sh b/ci/install.sh
index c8a0c8825d..053549d6db 100755
--- a/ci/install.sh
+++ b/ci/install.sh
@@ -8,18 +8,26 @@ if [[ "${CI_TARGET}" == lint ]]; then
fi
if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
+ brew install ninja
brew install gettext
brew reinstall -s libtool
fi
-# Use default CC to avoid compilation problems when installing Python modules.
-echo "Install neovim module and coveralls for Python 2."
-CC=cc pip2.7 -q install --user --upgrade neovim cpp-coveralls
-
echo "Install neovim module for Python 3."
# 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
-echo "Install neovim RubyGem."
-gem install --no-document --version ">= 0.2.0" neovim
+if ! [ "${TRAVIS_OS_NAME}" = osx ] ; then
+ # Update PATH for pip.
+ export PATH="$(python2.7 -c 'import site; print(site.getuserbase())')/bin:$PATH"
+ # Use default CC to avoid compilation problems when installing Python modules.
+ echo "Install neovim module for Python 2."
+ CC=cc pip2.7 -q install --user --upgrade neovim
+
+ echo "Install neovim RubyGem."
+ gem install --no-document --version ">= 0.2.0" neovim
+fi
+
+echo "Install neovim npm package"
+npm install -g neovim