Browse files

add travis config

  • Loading branch information...
1 parent 3bef00c commit f8c86dd3952e3c4490932c66638394e9d7e746ee @dchelimsky dchelimsky committed Apr 4, 2011
Showing with 14 additions and 0 deletions.
  1. +12 −0 .travis.yml
  2. +2 −0 gemfiles/base.rb
View
12 .travis.yml
@@ -0,0 +1,12 @@
+script: "rake"
+rvm:
+ - 1.8.6
+ - 1.8.7
+ - 1.9.1
+ - 1.9.2
+ - jruby
+gemfile:
+ - gemfiles/rails-3.0.5
+ - gemfiles/rails-3-0-stable
+env:
+ - USE_GIT_REPOS=true
View
2 gemfiles/base.rb
@@ -7,6 +7,8 @@ def self.extended(host)
library_path = File.expand_path("../../../#{lib}", __FILE__)
if File.exist?(library_path)
gem lib, :path => library_path
+ elsif ENV["USE_GIT_REPOS"] == 'true'
+ gem lib, :git => "git://github.com/rspec/#{lib}.git"
else
gem lib
end

0 comments on commit f8c86dd

Please sign in to comment.