Permalink
Browse files

Use rvm-tester for suite task

  • Loading branch information...
1 parent 9bbb6f0 commit 649b068d52ba8b0d5a02f84d9817a4c56de805db @lsegal committed May 10, 2012
Showing with 13 additions and 11 deletions.
  1. +1 −0 Gemfile
  2. +12 −11 Rakefile
View
@@ -3,6 +3,7 @@ source :rubygems
group :development do
gem 'rspec'
gem 'rake'
+ gem 'rvm-tester'
end
group :markdown do
View
@@ -16,17 +16,18 @@ task :install => :gem do
sh "#{SUDO} gem install yard-#{YARD::VERSION}.gem --no-rdoc --no-ri"
end
-desc 'Run spec suite'
-task :suite do
- ['ruby186', 'ruby18', 'ruby19', 'ruby192', 'ruby193', 'jruby'].each do |ruby|
- 2.times do |legacy|
- next if legacy == 1 && ruby =~ /^jruby|186/
- puts "Running specs with #{ruby}#{legacy == 1 ? ' (in legacy mode)' : ''}"
- cmd = "#{ruby} -S rake specs SUITE=1 #{legacy == 1 ? 'LEGACY=1' : ''}"
- puts cmd
- system(cmd)
- end
- end
+begin
+require 'rvm-tester'
+require 'yaml'
+RVM::Tester::TesterTask.new do |t|
+ # Use .travis.yml data
+ data = YAML.load_file(File.dirname(__FILE__) + '/.travis.yml')
+ t.rubies = data['rvm']
+ t.command = data['script']
+ t.env = {"CI" => "1", "SUITE" => "1"}
+ t.verbose = true
+end
+rescue LoadError
end
task :travis_ci do

0 comments on commit 649b068

Please sign in to comment.