aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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