drugpl / exceptioner

Exceptioner on drugs!
22 stars 1 forks source link

run tests against 1.8.7, 1.9.2, jruby and rubinius #12

Open mlomnicki opened 13 years ago

mlomnicki commented 13 years ago

maybe others also (mac-ruby, maglev?)

Rake task which uses rvm should be created for this

mostlyobvious commented 13 years ago

I doubt this is the right way to do it. CI/Jenkins should handle this.

mlomnicki commented 13 years ago

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

mostlyobvious commented 13 years ago

Will that assume you have all required platorms with gems preinstalled or would it handle this automatically?

mlomnicki commented 13 years ago

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)

mostlyobvious commented 13 years ago

We can probably use here rvm's ruby api. http://blog.thefrontiergroup.com.au//2010/12/a-brief-introduction-to-the-rvm-ruby-api/

mlomnicki commented 13 years ago

yeah it looks very nice