From d6b6f9f97a0c0dcda15702343193186ec9209562 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Tue, 13 Jun 2017 11:57:42 +0200 Subject: [PATCH] install ruby in rc script --- .../helper_scripts/prepare_build_macos_rc | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/tools/internal_ci/helper_scripts/prepare_build_macos_rc b/tools/internal_ci/helper_scripts/prepare_build_macos_rc index e38417952c1..3851e565a4d 100644 --- a/tools/internal_ci/helper_scripts/prepare_build_macos_rc +++ b/tools/internal_ci/helper_scripts/prepare_build_macos_rc @@ -21,8 +21,24 @@ yes | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install autoconf automake libtool ccache cmake gflags gpg wget -# TODO(jtattermusch): install rvm & ruby -# TODO(jtattermusch): install cocoapods +# TODO(jtattermusch): hkp://keys.gnupg.net fails with "No route to host" +gpg --keyserver hkp://193.164.133.100 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 +curl -sSL https://get.rvm.io | sudo bash -s stable + +# add ourselves to rvm group to prevent later "access denied" errors. +sudo dseditgroup -o edit -a `whoami` -t user rvm + +set +ex +source /etc/profile.d/rvm.sh +rvm install ruby-2.3 +gem install bundler + +rvm osx-ssl-certs status all +rvm osx-ssl-certs update all +set -ex + +# cocoapods +gem install cocoapods --version 1.0.0 # python wget -q https://bootstrap.pypa.io/get-pip.py