Skip to content
Browse files

Test multiple ruby versions with `rake all_rubies`

  • Loading branch information...
1 parent 5159567 commit 31dbac616ed14114aa35442e77c03724c49f93a3 @jwilger committed Apr 13, 2012
Showing with 32 additions and 25 deletions.
  1. +3 −1 .rvmrc
  2. +0 −1 Gemfile
  3. +19 −17 Gemfile.lock
  4. +10 −6 Rakefile
View
4 .rvmrc
@@ -1,2 +1,4 @@
+rvm use ruby-1.9.3@kookaburra --create --install
+rvm use ruby-1.9.2@kookaburra --create --install
rvm use ree-1.8.7@kookaburra --create --install
-bundle check
+rvm use ruby-1.8.7@kookaburra --create --install
View
1 Gemfile
@@ -12,7 +12,6 @@ group :development do
gem 'yard'
gem 'redcarpet', '~> 1.0' # used to format documentation
gem 'jeweler'
- gem 'rcov'
gem 'reek'
gem 'sinatra'
end
View
36 Gemfile.lock
@@ -1,9 +1,10 @@
GEM
remote: http://rubygems.org/
specs:
- activesupport (3.2.2)
+ activesupport (3.2.3)
i18n (~> 0.6)
multi_json (~> 1.0)
+ addressable (2.2.7)
capybara (1.1.2)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
@@ -22,42 +23,44 @@ GEM
git (>= 1.2.5)
rake
rdoc
- json (1.6.5)
- mime-types (1.17.2)
- multi_json (1.1.0)
- nokogiri (1.5.0)
+ json (1.6.6)
+ libwebsocket (0.1.3)
+ addressable
+ mime-types (1.18)
+ multi_json (1.2.0)
+ nokogiri (1.5.2)
patron (0.4.18)
rack (1.4.1)
rack-protection (1.2.0)
rack
rack-test (0.6.1)
rack (>= 1.0)
rake (0.9.2.2)
- rcov (1.0.0)
rdoc (3.12)
json (~> 1.4)
redcarpet (1.17.2)
reek (1.2.8)
ruby2ruby (~> 1.2)
ruby_parser (~> 2.0)
sexp_processor (~> 3.0)
- rspec (2.8.0)
- rspec-core (~> 2.8.0)
- rspec-expectations (~> 2.8.0)
- rspec-mocks (~> 2.8.0)
- rspec-core (2.8.0)
- rspec-expectations (2.8.0)
- diff-lcs (~> 1.1.2)
- rspec-mocks (2.8.0)
+ rspec (2.9.0)
+ rspec-core (~> 2.9.0)
+ rspec-expectations (~> 2.9.0)
+ rspec-mocks (~> 2.9.0)
+ rspec-core (2.9.0)
+ rspec-expectations (2.9.1)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.9.0)
ruby2ruby (1.3.1)
ruby_parser (~> 2.0)
sexp_processor (~> 3.0)
ruby_parser (2.3.1)
sexp_processor (~> 3.0)
- rubyzip (0.9.6.1)
- selenium-webdriver (2.20.0)
+ rubyzip (0.9.7)
+ selenium-webdriver (2.21.0)
childprocess (>= 0.2.5)
ffi (~> 1.0)
+ libwebsocket (~> 0.1.3)
multi_json (~> 1.0)
rubyzip
sexp_processor (3.1.0)
@@ -79,7 +82,6 @@ DEPENDENCIES
i18n
jeweler
patron
- rcov
redcarpet (~> 1.0)
reek
rspec
View
16 Rakefile
@@ -32,12 +32,6 @@ task :default => :spec
desc 'Run specs'
RSpec::Core::RakeTask.new
-desc "Generate code coverage"
-RSpec::Core::RakeTask.new(:coverage) do |t|
- t.rcov = true
- t.rcov_opts = ['--exclude', 'spec']
-end
-
require 'reek/rake/task'
Reek::Rake::Task.new do |t|
t.fail_on_error = true
@@ -47,3 +41,13 @@ end
require 'yard'
YARD::Rake::YardocTask.new
+
+desc "Run rake on all supported rubies"
+task :all_rubies do
+ rubies = %w[ruby-1.9.3 ruby-1.9.2 ree-1.8.7 ruby-1.8.7]
+ rubies.each do |ruby_version|
+ puts "Testing with #{ruby_version}"
+ system "rvm #{ruby_version}@kookaburra do rake" \
+ or raise "Failed to run rake with #{ruby_version}!"
+ end
+end

0 comments on commit 31dbac6

Please sign in to comment.
Something went wrong with that request. Please try again.