aboutsummaryrefslogtreecommitdiff
path: root/ci/before_install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/before_install.sh')
-rwxr-xr-xci/before_install.sh16
1 files changed, 7 insertions, 9 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