mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	ci/travis: macOS: switch ruby version
Travis macOS builds are failing because of neovim-ruby gem dependencies. Switch default ruby to a newer version to make the builds pass.
This commit is contained in:
		| @@ -25,6 +25,8 @@ if [[ "${TRAVIS_OS_NAME}" == osx ]]; then | |||||||
|   # That allows to test changing the group of the file by `os_fchown`. |   # That allows to test changing the group of the file by `os_fchown`. | ||||||
|   sudo dscl . -create /Groups/chown_test |   sudo dscl . -create /Groups/chown_test | ||||||
|   sudo dscl . -append /Groups/chown_test GroupMembership "${USER}" |   sudo dscl . -append /Groups/chown_test GroupMembership "${USER}" | ||||||
|  |  | ||||||
|  |   macos_rvm_dance | ||||||
| fi | fi | ||||||
|  |  | ||||||
| # Compile dependencies. | # Compile dependencies. | ||||||
|   | |||||||
| @@ -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 | ||||||
|  | } | ||||||
|   | |||||||
| @@ -22,6 +22,10 @@ echo "Install neovim module for Python 3." | |||||||
| CC=cc pip3 -q install --user --upgrade neovim || true | CC=cc pip3 -q install --user --upgrade neovim || true | ||||||
|  |  | ||||||
| echo "Install neovim RubyGem." | echo "Install neovim RubyGem." | ||||||
|  | if [ "${TRAVIS_OS_NAME}" = osx ] ; then | ||||||
|  |   macos_rvm_dance | ||||||
|  |   gem update --system | ||||||
|  | fi | ||||||
| gem install --no-document --version ">= 0.2.0" neovim | gem install --no-document --version ">= 0.2.0" neovim | ||||||
|  |  | ||||||
| if [[ "${TRAVIS_OS_NAME}" == linux ]]; then | if [[ "${TRAVIS_OS_NAME}" == linux ]]; then | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Justin M. Keyes
					Justin M. Keyes