Open mlomnicki opened 13 years ago
I doubt this is the right way to do it. CI/Jenkins should handle this.
But why don't have an option to run tests locally? especially for 1.8.7 and 1.9.2.
I mean 'rake test' should still use current ruby version. But we might have some special task like 'rake test:platforms' which tests against 1.8.7/1.9.2/etc
Will that assume you have all required platorms with gems preinstalled or would it handle this automatically?
It shouldn't assume gems are installed.
rake test:platforms:setup rvm install 1.9.2, 1.8.7, jruby, rubinius rvm 1.9.2, 1.8.7, jruby, rubinius exec bundle install
rake test:platforms => test:platforms:setup rvm 1.9.2, 1.8.7, jruby, rubinius exec rake test
We should make it smart enough to prevent rvm install if given version is installed already (maybe it's out of the box)
We can probably use here rvm's ruby api. http://blog.thefrontiergroup.com.au//2010/12/a-brief-introduction-to-the-rvm-ruby-api/
yeah it looks very nice
maybe others also (mac-ruby, maglev?)
Rake task which uses rvm should be created for this