aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/artifacts/build_artifact_ruby.sh
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2017-02-01 17:10:34 -0800
committerGravatar Alexander Polcyn <apolcyn@google.com>2017-02-01 17:10:40 -0800
commit513e6b85992e4169e7eaa9e174bfc3af6665824d (patch)
tree620e5fc18b887d85cb97079ea6adc8afcb70f192 /tools/run_tests/artifacts/build_artifact_ruby.sh
parentde3ed4c670f9cdbf8b1f1edc53eaa0cc34515eda (diff)
ruby bundle install work around to build packages on mac
Diffstat (limited to 'tools/run_tests/artifacts/build_artifact_ruby.sh')
-rwxr-xr-xtools/run_tests/artifacts/build_artifact_ruby.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/run_tests/artifacts/build_artifact_ruby.sh b/tools/run_tests/artifacts/build_artifact_ruby.sh
index 019efb01fd..16266a9230 100755
--- a/tools/run_tests/artifacts/build_artifact_ruby.sh
+++ b/tools/run_tests/artifacts/build_artifact_ruby.sh
@@ -52,7 +52,15 @@ fi
set +ex
rvm use default
gem install bundler --update
-bundle install
+
+if [ "$SYSTEM" == "Darwin" ] ; then
+ # Workaround for crash during bundle install
+ # See suggestion in https://github.com/bundler/bundler/issues/3692
+ BUNDLE_SPECIFIC_PLATFORM=true bundle install
+else
+ bundle install
+fi
+
set -ex
rake gem:native