aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2018-01-07 18:37:31 -0500
committerJustin M. Keyes <justinkz@gmail.com>2018-01-08 00:37:31 +0100
commit9370a0e5d859f692f6fa24c27c76410b54595be4 (patch)
tree209009a310a237c2d1dec9c7158b633bf310808a
parentccdbcfea0b74b5e3c8ce391a173165de1c72c612 (diff)
downloadrneovim-9370a0e5d859f692f6fa24c27c76410b54595be4.tar.gz
rneovim-9370a0e5d859f692f6fa24c27c76410b54595be4.tar.bz2
rneovim-9370a0e5d859f692f6fa24c27c76410b54595be4.zip
ci/travis: install neovim npm module on osx (#7825)
Always get latest nvm on osx to fix lts aliases.
-rwxr-xr-xci/before_install.sh16
-rwxr-xr-xci/install.sh6
2 files changed, 9 insertions, 13 deletions
diff --git a/ci/before_install.sh b/ci/before_install.sh
index f5a57ad657..9f512ee5b9 100755
--- a/ci/before_install.sh
+++ b/ci/before_install.sh
@@ -38,14 +38,12 @@ else
pip3 -q install --user --upgrade pip || true
fi
-if [[ "${TRAVIS_OS_NAME}" == linux ]]; then
- echo "Install node (LTS)"
+echo "Install node (LTS)"
- if [ ! -f ~/.nvm/nvm.sh ]; then
- curl -o ~/.nvm/nvm.sh https://raw.githubusercontent.com/creationix/nvm/master/nvm.sh
- fi
-
- source ~/.nvm/nvm.sh
- nvm install --lts
- nvm use --lts
+if [[ "${TRAVIS_OS_NAME}" == osx ]] || [ ! -f ~/.nvm/nvm.sh ]; then
+ curl -o ~/.nvm/nvm.sh https://raw.githubusercontent.com/creationix/nvm/master/nvm.sh
fi
+
+source ~/.nvm/nvm.sh
+nvm install --lts
+nvm use --lts
diff --git a/ci/install.sh b/ci/install.sh
index f51ba1a776..eb7fb14760 100755
--- a/ci/install.sh
+++ b/ci/install.sh
@@ -26,7 +26,5 @@ if ! [ "${TRAVIS_OS_NAME}" = osx ] ; then
gem install --no-document --version ">= 0.2.0" neovim
fi
-if [[ "${TRAVIS_OS_NAME}" == linux ]]; then
- echo "Install neovim npm package"
- npm install -g neovim
-fi
+echo "Install neovim npm package"
+npm install -g neovim