Skip to content

Commit

Permalink
Fix permissions in Ruby release test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkruskal-google committed Jul 21, 2022
1 parent 9debee7 commit a8953a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kokoro/release/ruby/macos/build_artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export ARTIFACT_DIR=$(pwd)/artifacts
# ruby environment
bash kokoro/release/ruby/macos/ruby/ruby_build_environment.sh

gem install rubygems-update
update_rubygems
gem update --system
gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"

# build artifacts
bash kokoro/release/ruby/macos/ruby/ruby_build.sh
1 change: 0 additions & 1 deletion kokoro/release/ruby/macos/ruby/ruby_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
set -ex

# Build protoc
use_bazel.sh 5.1.1
bazel build //:protoc
export PROTOC=$PWD/bazel-bin/protoc

Expand Down
3 changes: 3 additions & 0 deletions kokoro/release/ruby/macos/ruby/ruby_build_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ set -ex

set +ex # rvm script is very verbose and exits with errorcode

# Fix permissions
sudo chown -R $(whoami) $HOME/.rvm/
sudo chown -R $(whoami) /Library/Ruby/

source $HOME/.rvm/scripts/rvm
set -e # rvm commands are very verbose
time rvm install 2.5.0
Expand Down

0 comments on commit a8953a7

Please sign in to comment.