install.sh 901 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env bash
  2. set -e
  3. set -o pipefail
  4. if [[ "${CI_TARGET}" == lint ]]; then
  5. python3 -m pip -q install --user --upgrade flake8
  6. exit
  7. fi
  8. if [[ "${TRAVIS_OS_NAME}" == osx ]]; then
  9. export PATH="/usr/local/opt/ccache/libexec:$PATH"
  10. fi
  11. # Use default CC to avoid compilation problems when installing Python modules.
  12. echo "Install neovim module for Python 3."
  13. CC=cc python3 -m pip -q install --user --upgrade pynvim
  14. if python2 -m pip -c True 2>&1; then
  15. echo "Install neovim module for Python 2."
  16. CC=cc python2 -m pip -q install --user --upgrade pynvim
  17. fi
  18. echo "Install neovim RubyGem."
  19. gem install --no-document --bindir "$HOME/.local/bin" --user-install --pre neovim
  20. echo "Install neovim npm package"
  21. source ~/.nvm/nvm.sh
  22. nvm use 10
  23. npm install -g neovim
  24. npm link neovim
  25. sudo cpanm -n Neovim::Ext || cat "$HOME/.cpanm/build.log"
  26. perl -W -e 'use Neovim::Ext; print $Neovim::Ext::VERSION'