ci/travis: install neovim npm module on osx (#7825)

Always get latest nvm on osx to fix lts aliases.
This commit is contained in:
Jan Edmund Lazo 2018-01-07 18:37:31 -05:00 committed by Justin M. Keyes
parent ccdbcfea0b
commit 9370a0e5d8
2 changed files with 9 additions and 13 deletions

View File

@ -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

View File

@ -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