Skip to content

Commit f47e300

Browse files
committed
Fix testing on different Ruby versions
1 parent 229a051 commit f47e300

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Rakefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,6 @@ task :release => ['release:checks', 'release:build', 'release:test', 'release:pu
234234
namespace :release do
235235
# Depends on environment of @pitr-ch
236236

237-
mri_version = '2.6.5'
238-
jruby_version = 'jruby-9.2.9.0'
239-
240237
task :checks => "yard:#{current_yard_version_name}:uptodate" do
241238
Dir.chdir(__dir__) do
242239
sh 'test -z "$(git status --porcelain)"' do |ok, res|
@@ -271,6 +268,12 @@ namespace :release do
271268
Dir.chdir(__dir__) do
272269
old = ENV['RBENV_VERSION']
273270

271+
mri_version = `ruby -e 'puts RUBY_VERSION'`.chomp
272+
jruby_version = File.basename(ENV['CONCURRENT_JRUBY_HOME'])
273+
274+
puts "Using following version:"
275+
pp mri_version: mri_version, jruby_version: jruby_version
276+
274277
ENV['RBENV_VERSION'] = mri_version
275278
sh 'rbenv version'
276279
sh 'bundle exec rake spec:installed'

0 commit comments

Comments
 (0)