Skip to content

Commit

Permalink
Fix testing on different Ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
pitr-ch committed Jun 5, 2021
1 parent 229a051 commit f47e300
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,6 @@ task :release => ['release:checks', 'release:build', 'release:test', 'release:pu
namespace :release do
# Depends on environment of @pitr-ch

mri_version = '2.6.5'
jruby_version = 'jruby-9.2.9.0'

task :checks => "yard:#{current_yard_version_name}:uptodate" do
Dir.chdir(__dir__) do
sh 'test -z "$(git status --porcelain)"' do |ok, res|
Expand Down Expand Up @@ -271,6 +268,12 @@ namespace :release do
Dir.chdir(__dir__) do
old = ENV['RBENV_VERSION']

mri_version = `ruby -e 'puts RUBY_VERSION'`.chomp
jruby_version = File.basename(ENV['CONCURRENT_JRUBY_HOME'])

puts "Using following version:"
pp mri_version: mri_version, jruby_version: jruby_version

ENV['RBENV_VERSION'] = mri_version
sh 'rbenv version'
sh 'bundle exec rake spec:installed'
Expand Down

0 comments on commit f47e300

Please sign in to comment.