Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Dry up testing config:

  - spec_all will run build against all builds in
    travis.yml, so we just declare rubies there for
    Travis and can run things for spec_all
  • Loading branch information...
commit bf656c3ba673fca30c514381c701e18d49c3d8aa 1 parent 1793ae0
@rsanheim rsanheim authored
Showing with 12 additions and 8 deletions.
  1. +2 −0  .travis.yml
  2. +2 −0  Gemfile.lock
  3. +8 −8 Rakefile
View
2  .travis.yml
@@ -1,4 +1,6 @@
rvm:
- 1.8.7
- 1.9.2
+ - 1.9.3
+ - jruby
script: bundle exec rspec spec
View
2  Gemfile.lock
@@ -14,6 +14,7 @@ GEM
rake
rdoc
json (1.6.5)
+ json (1.6.5-java)
metaclass (0.0.1)
mocha (0.10.4)
metaclass (~> 0.0.1)
@@ -30,6 +31,7 @@ GEM
rspec-mocks (2.8.0)
PLATFORMS
+ java
ruby
DEPENDENCIES
View
16 Rakefile
@@ -22,24 +22,24 @@ end
begin
require 'rspec/core/rake_task'
-
+
RSpec::Core::RakeTask.new(:spec)
-
+
RSpec::Core::RakeTask.new(:coverage) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov_opts = %[-Ilib -Ispec --exclude "gems/*,/Library/Ruby/*,config/*" --text-summary --sort coverage]
spec.rcov = true
end
-
- RubyVersions = %w[1.8.7 1.9.1 1.9.2]
-
+
+ require "yaml"
+ RubyVersions = YAML.load_file(".travis.yml")["rvm"]
desc "Run Rspec against multiple Rubies: #{RubyVersions.join(", ")}"
task :spec_all do
- cmd = %[bash -c 'source ~/.rvm/scripts/rvm; rvm #{RubyVersions.join(",")} rake spec']
+ cmd = %[bash -c 'source ~/.rvm/scripts/rvm; rvm #{RubyVersions.join(",")} do rake spec']
puts cmd
- system %[bash -c 'source ~/.rvm/scripts/rvm; rvm #{RubyVersions.join(",")} rake spec']
+ system cmd
end
-
+
if RUBY_VERSION <= "1.8.7"
task :default => [:coverage]
Please sign in to comment.
Something went wrong with that request. Please try again.