aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2017-06-30 18:25:31 +0200
committerGravatar GitHub <noreply@github.com>2017-06-30 18:25:31 +0200
commit50462f0ec21b614f0a09f4a7b5b7a33abf3c8540 (patch)
tree07c7091e8f0872247a8792205b33ba3035b26676
parent83dc50542bf25a19da2415e14fb5ff7d96b9ee92 (diff)
parent0c435fe6cbb0113f108f10805dbc6cb49bf8335f (diff)
Merge pull request #11668 from jtattermusch/kokoro_fix_ruby_artifact
Fix ruby artifact build on kokoro
-rw-r--r--tools/internal_ci/helper_scripts/prepare_build_macos_rc2
-rwxr-xr-xtools/internal_ci/macos/grpc_build_artifacts.sh7
2 files changed, 8 insertions, 1 deletions
diff --git a/tools/internal_ci/helper_scripts/prepare_build_macos_rc b/tools/internal_ci/helper_scripts/prepare_build_macos_rc
index 6b942d22b8..22e80d2afa 100644
--- a/tools/internal_ci/helper_scripts/prepare_build_macos_rc
+++ b/tools/internal_ci/helper_scripts/prepare_build_macos_rc
@@ -27,7 +27,7 @@ brew install gflags
set +ex # rvm script is very verbose and exits with errorcode
source $HOME/.rvm/scripts/rvm
set -e # rvm commands are very verbose
-rvm install ruby-2.3
+rvm install ruby-2.4
rvm osx-ssl-certs status all
rvm osx-ssl-certs update all
set -ex
diff --git a/tools/internal_ci/macos/grpc_build_artifacts.sh b/tools/internal_ci/macos/grpc_build_artifacts.sh
index 3884a4f2e5..603c15f210 100755
--- a/tools/internal_ci/macos/grpc_build_artifacts.sh
+++ b/tools/internal_ci/macos/grpc_build_artifacts.sh
@@ -37,5 +37,12 @@ npm install -g node-gyp
curl -O http://pear.php.net/go-pear.phar
sudo php -d detect_unicode=0 go-pear.phar
+# needed to build ruby artifacts
+gem install rake-compiler
+wget https://raw.githubusercontent.com/grpc/grpc/master/tools/distrib/build_ruby_environment_macos.sh
+bash build_ruby_environment_macos.sh
+
+gem install rubygems-update
+update_rubygems
tools/run_tests/task_runner.py -f artifact macos