I was looking for a way to run 'rake spec' for all ruby versions.
So far I wrote this code in Rakefile but it doesn't work:
RUBIES = ['ruby-2.0.0', 'ruby-2.1.1', 'ruby-2.2.1']
RUBIES.each do |ruby_v|
sh "rvm use #{ruby_v}"
RSpec::Core::RakeTask.new(:spec)
end
Any ideas how may I accomplish this?
It would be great if I could pass down arguments specifying whether I want to run the tests for a single ruby version or for all.
Aucun commentaire:
Enregistrer un commentaire