Merge #7820 'ci/travis/macOS: skip ruby gem install'

This commit is contained in:
Justin M. Keyes 2018-01-07 20:34:16 +01:00 committed by GitHub
commit ccdbcfea0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -87,3 +87,12 @@ build_nvim() {
cd "${TRAVIS_BUILD_DIR}" cd "${TRAVIS_BUILD_DIR}"
} }
macos_rvm_dance() {
# neovim-ruby gem requires a ruby newer than the macOS default.
source ~/.rvm/scripts/rvm
rvm get stable --auto-dotfiles
rvm reload
rvm use 2.2.5
rvm use
}

View File

@ -21,8 +21,10 @@ echo "Install neovim module for Python 3."
# https://github.com/travis-ci/travis-ci/issues/8363 # https://github.com/travis-ci/travis-ci/issues/8363
CC=cc pip3 -q install --user --upgrade neovim || true CC=cc pip3 -q install --user --upgrade neovim || true
echo "Install neovim RubyGem." if ! [ "${TRAVIS_OS_NAME}" = osx ] ; then
gem install --no-document --version ">= 0.2.0" neovim echo "Install neovim RubyGem."
gem install --no-document --version ">= 0.2.0" neovim
fi
if [[ "${TRAVIS_OS_NAME}" == linux ]]; then if [[ "${TRAVIS_OS_NAME}" == linux ]]; then
echo "Install neovim npm package" echo "Install neovim npm package"