Fix ruby installation
This commit is contained in:
parent
ef4cba6113
commit
fd9be240ed
|
@ -355,8 +355,15 @@ commands:
|
||||||
- run:
|
- run:
|
||||||
name: Bundle Install
|
name: Bundle Install
|
||||||
command: |
|
command: |
|
||||||
brew update && brew upgrade ruby-build
|
# Install the right version of ruby
|
||||||
rbenv install << parameters.ruby_version >>
|
if [[ -z "$(rbenv versions | grep << parameters.ruby_version >>)" ]]; then
|
||||||
|
# ensure that `ruby-build` can see all the available versions of Ruby
|
||||||
|
# some PRs received machines in a weird state, this should make the pipelines
|
||||||
|
# more robust.
|
||||||
|
brew update && brew upgrade ruby-build
|
||||||
|
rbenv install << parameters.ruby_version >>
|
||||||
|
fi
|
||||||
|
|
||||||
rbenv global << parameters.ruby_version >>
|
rbenv global << parameters.ruby_version >>
|
||||||
gem install bundler
|
gem install bundler
|
||||||
bundle check || bundle install --path vendor/bundle --clean
|
bundle check || bundle install --path vendor/bundle --clean
|
||||||
|
|
Loading…
Reference in New Issue