Skip to content

Commit

Permalink
check ruby version directly in the shell
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Feb 17, 2020
1 parent fd4a8fe commit 00b9d68
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .evergreen/functions.sh
Expand Up @@ -190,12 +190,11 @@ setup_ruby() {
ruby --version

# Ensure we're using the right ruby
python - <<EOH
ruby = "${RVM_RUBY}".split("-")[0]
version = "${RVM_RUBY}".split("-")[1]
assert(ruby in "`ruby --version`")
assert(version in "`ruby --version`")
EOH
ruby_name=`echo $RVM_RUBY |awk -F- '{print $1}'`
ruby_version=`echo $RVM_RUBY |awk -F- '{print $2}' |cut -c 1-3`

ruby -v |fgrep $ruby_name
ruby -v |fgrep $ruby_version

# We shouldn't need to update rubygems, and there is value in
# testing on whatever rubygems came with each supported ruby version
Expand Down

0 comments on commit 00b9d68

Please sign in to comment.