Commit 07707957 authored by Adam Cozzette's avatar Adam Cozzette Committed by Paul Yang

Fixed CI failures with Ruby 2.3 on OSX (#5948)

OSX has deprecated OpenSSL, so we need to install it via Homebrew and
build against that version when we build Ruby.
parent 34b64995
No related merge requests found
......@@ -23,7 +23,7 @@ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/
source $HOME/.rvm/scripts/rvm
brew uninstall node icu4c cmake
brew prune
brew install gflags gpg gpg2 node pcre ruby cmake
brew install gflags gpg gpg2 node openssl pcre ruby cmake
sudo chown -R $(whoami) /usr/local
brew postinstall node
......
......@@ -36,8 +36,11 @@ test_version() {
cd ../ruby/compatibility_tests/v3.0.0 &&
cp -R ../../lib lib && ./test.sh"
else
# Recent versions of OSX have deprecated OpenSSL, so we have to explicitly
# provide a path to the OpenSSL directory installed via Homebrew.
bash --login -c \
"rvm install $version && rvm use $version && \
"rvm install $version --with-openssl-dir=`brew --prefix openssl` && \
rvm use $version && \
which ruby && \
git clean -f && \
gem install bundler -v 1.17.3 && bundle && \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment