Browse files

Added .travis.yml

  • Loading branch information...
1 parent de12748 commit 43605682cf555a957ece1f3394d622a5fccd0d2f @assaf assaf committed Aug 1, 2011
Showing with 18 additions and 3 deletions.
  1. +13 −0 .travis.yml
  2. +1 −1 Gemfile
  3. +2 −2 Gemfile.lock
  4. +2 −0 test/test_helper.rb
View
13 .travis.yml
@@ -0,0 +1,13 @@
+rvm:
+- 1.8.7
+- 1.9.2
+gemfile:
+- Gemfile
+env:
+- DB=mongodb
+- DB=redis
+before_script:
+- "mysql -e 'create database vanity_test;' >/dev/null"
+notifications:
+ recipients:
+ - assaf@labnotes.org
View
2 Gemfile
@@ -14,7 +14,7 @@ group :test do
gem "mocha"
gem "mongo"
gem "bson_ext"
- gem "mysql"
+ gem "mysql2"
gem "passenger", "~>2.0"
gem "rails", "~>2.3.8"
gem "rack"
View
4 Gemfile.lock
@@ -47,7 +47,7 @@ GEM
mocha (0.9.12)
mongo (1.3.1)
bson (>= 1.3.1)
- mysql (2.8.1)
+ mysql2 (0.3.6)
passenger (2.2.15)
fastthread (>= 1.0.1)
rack
@@ -83,7 +83,7 @@ DEPENDENCIES
jekyll
mocha
mongo
- mysql
+ mysql2
passenger (~> 2.0)
rack
rails (~> 2.3.8)
View
2 test/test_helper.rb
@@ -21,6 +21,7 @@
$logger.level = Logger::DEBUG
end
+
class Test::Unit::TestCase
include WebMock::API
@@ -46,6 +47,7 @@ def new_playground
spec = {
"redis"=>"redis://localhost/15",
"mongodb"=>"mongodb://localhost/vanity",
+ "mysql"=> { "active_record"=> { "adapter"=>"mysql2", "database"=>"vanity" } },
"mock"=>"mock:/"
}[adapter]
raise "No support yet for #{adapter}" unless spec

0 comments on commit 4360568

Please sign in to comment.