Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Test multiple ruby versions with `rake all_rubies`

  • Loading branch information...
commit 31dbac616ed14114aa35442e77c03724c49f93a3 1 parent 5159567
John Wilger authored

Showing 4 changed files with 32 additions and 25 deletions. Show diff stats Hide diff stats

  1. +3 1 .rvmrc
  2. +0 1  Gemfile
  3. +19 17 Gemfile.lock
  4. +10 6 Rakefile
4 .rvmrc
... ... @@ -1,2 +1,4 @@
  1 +rvm use ruby-1.9.3@kookaburra --create --install
  2 +rvm use ruby-1.9.2@kookaburra --create --install
1 3 rvm use ree-1.8.7@kookaburra --create --install
2   -bundle check
  4 +rvm use ruby-1.8.7@kookaburra --create --install
1  Gemfile
@@ -12,7 +12,6 @@ group :development do
12 12 gem 'yard'
13 13 gem 'redcarpet', '~> 1.0' # used to format documentation
14 14 gem 'jeweler'
15   - gem 'rcov'
16 15 gem 'reek'
17 16 gem 'sinatra'
18 17 end
36 Gemfile.lock
... ... @@ -1,9 +1,10 @@
1 1 GEM
2 2 remote: http://rubygems.org/
3 3 specs:
4   - activesupport (3.2.2)
  4 + activesupport (3.2.3)
5 5 i18n (~> 0.6)
6 6 multi_json (~> 1.0)
  7 + addressable (2.2.7)
7 8 capybara (1.1.2)
8 9 mime-types (>= 1.16)
9 10 nokogiri (>= 1.3.3)
@@ -22,10 +23,12 @@ GEM
22 23 git (>= 1.2.5)
23 24 rake
24 25 rdoc
25   - json (1.6.5)
26   - mime-types (1.17.2)
27   - multi_json (1.1.0)
28   - nokogiri (1.5.0)
  26 + json (1.6.6)
  27 + libwebsocket (0.1.3)
  28 + addressable
  29 + mime-types (1.18)
  30 + multi_json (1.2.0)
  31 + nokogiri (1.5.2)
29 32 patron (0.4.18)
30 33 rack (1.4.1)
31 34 rack-protection (1.2.0)
@@ -33,7 +36,6 @@ GEM
33 36 rack-test (0.6.1)
34 37 rack (>= 1.0)
35 38 rake (0.9.2.2)
36   - rcov (1.0.0)
37 39 rdoc (3.12)
38 40 json (~> 1.4)
39 41 redcarpet (1.17.2)
@@ -41,23 +43,24 @@ GEM
41 43 ruby2ruby (~> 1.2)
42 44 ruby_parser (~> 2.0)
43 45 sexp_processor (~> 3.0)
44   - rspec (2.8.0)
45   - rspec-core (~> 2.8.0)
46   - rspec-expectations (~> 2.8.0)
47   - rspec-mocks (~> 2.8.0)
48   - rspec-core (2.8.0)
49   - rspec-expectations (2.8.0)
50   - diff-lcs (~> 1.1.2)
51   - rspec-mocks (2.8.0)
  46 + rspec (2.9.0)
  47 + rspec-core (~> 2.9.0)
  48 + rspec-expectations (~> 2.9.0)
  49 + rspec-mocks (~> 2.9.0)
  50 + rspec-core (2.9.0)
  51 + rspec-expectations (2.9.1)
  52 + diff-lcs (~> 1.1.3)
  53 + rspec-mocks (2.9.0)
52 54 ruby2ruby (1.3.1)
53 55 ruby_parser (~> 2.0)
54 56 sexp_processor (~> 3.0)
55 57 ruby_parser (2.3.1)
56 58 sexp_processor (~> 3.0)
57   - rubyzip (0.9.6.1)
58   - selenium-webdriver (2.20.0)
  59 + rubyzip (0.9.7)
  60 + selenium-webdriver (2.21.0)
59 61 childprocess (>= 0.2.5)
60 62 ffi (~> 1.0)
  63 + libwebsocket (~> 0.1.3)
61 64 multi_json (~> 1.0)
62 65 rubyzip
63 66 sexp_processor (3.1.0)
@@ -79,7 +82,6 @@ DEPENDENCIES
79 82 i18n
80 83 jeweler
81 84 patron
82   - rcov
83 85 redcarpet (~> 1.0)
84 86 reek
85 87 rspec
16 Rakefile
@@ -32,12 +32,6 @@ task :default => :spec
32 32 desc 'Run specs'
33 33 RSpec::Core::RakeTask.new
34 34
35   -desc "Generate code coverage"
36   -RSpec::Core::RakeTask.new(:coverage) do |t|
37   - t.rcov = true
38   - t.rcov_opts = ['--exclude', 'spec']
39   -end
40   -
41 35 require 'reek/rake/task'
42 36 Reek::Rake::Task.new do |t|
43 37 t.fail_on_error = true
@@ -47,3 +41,13 @@ end
47 41
48 42 require 'yard'
49 43 YARD::Rake::YardocTask.new
  44 +
  45 +desc "Run rake on all supported rubies"
  46 +task :all_rubies do
  47 + rubies = %w[ruby-1.9.3 ruby-1.9.2 ree-1.8.7 ruby-1.8.7]
  48 + rubies.each do |ruby_version|
  49 + puts "Testing with #{ruby_version}"
  50 + system "rvm #{ruby_version}@kookaburra do rake" \
  51 + or raise "Failed to run rake with #{ruby_version}!"
  52 + end
  53 +end

0 comments on commit 31dbac6

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