-
Notifications
You must be signed in to change notification settings - Fork 440
Add a build:local_ruby
task to simplify local testing flow
#1281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use this in .github/workflows/ruby-core.yml
?
Rakefile
Outdated
@@ -99,6 +99,11 @@ task :clean do | |||
end | |||
end | |||
|
|||
desc "Build #{Bundler::GemHelper.gemspec.full_name} and move it to local ruby/ruby project's bundled gems folder" | |||
task build_for_local_ruby: :build do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use better task name something like local_ruby:build
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed it to build:local_ruby
A common way to test RDoc changes is to build `ruby/ruby`'s documentation with the latest RDoc changes. When RDoc was a default gem, we can sync it to `ruby/ruby` with its `tool/sync_default_gems.rb` script. Now that RDoc is a bundled gem, we need to use a different method to sync it to `ruby/ruby`. And so far building it and moving it to `ruby/ruby`'s bundled gems folder is the easiest way to do it.
be43c22
to
c9c47e3
Compare
build_for_local_ruby
task to simplify local testing flowbuild:local_ruby
task to simplify local testing flow
A common way to test RDoc changes is to build
ruby/ruby
's documentation with the latest RDoc changes. When RDoc was a default gem, we can sync it toruby/ruby
with itstool/sync_default_gems.rb
script.Now that RDoc is a bundled gem, we need to use a different method to sync it to
ruby/ruby
. And so far building it and moving it toruby/ruby
's bundled gems folder is the easiest way to do it.