Skip to content

Commit

Permalink
Run appraisal install before one or all rails versions
Browse files Browse the repository at this point in the history
I always forget to run it first and have to look up how to run it.
It has some overhead but we shouldn't be running this that often in development.
  • Loading branch information
jrafanie committed Nov 12, 2024
1 parent 5687c3f commit a54ae74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ rails_versions.each do |version|
namespace :test do
desc "Test with Rails #{version}.x"
task :"rails#{dotless}" do
sh 'appraisal install'
ENV['BUNDLE_GEMFILE'] = "gemfiles/rails_#{dotless}.gemfile"
ruby "test.rb"
end
Expand All @@ -38,6 +39,7 @@ end
namespace :test do
desc "Test with all supported Rails versions"
task :railsall do
sh 'appraisal install'
rails_versions.each do |version|
dotless = version.delete('.')
ENV['BUNDLE_GEMFILE'] = "gemfiles/rails_#{dotless}.gemfile"
Expand Down

0 comments on commit a54ae74

Please sign in to comment.