forked from promiscuous-io/promiscuous
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kareem Kouddous
committed
Jul 24, 2014
1 parent
a41ac8f
commit afe361d
Showing
14 changed files
with
185 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
language: ruby | ||
bundler_args: --without development | ||
script: bundle exec rspec spec | ||
env: JRUBY_OPTS="--server --debug -J-Xms512m -J-Xmx1024m" TIMEOUT=10 | ||
env: TIMEOUT=10 | ||
rvm: | ||
- ruby-1.9.3 | ||
- ruby-2.0.0 | ||
- ruby-2.1.0 | ||
# - jruby | ||
# - jruby-head | ||
# - ruby-head | ||
gemfile: | ||
- gemfiles/mongoid31.gemfile | ||
- gemfiles/mongoid40.gemfile | ||
- gemfiles/active_record32.gemfile | ||
- gemfiles/active_record40.gemfile | ||
- gemfiles/active_record40_mysql.gemfile | ||
services: | ||
- mongodb | ||
- rabbitmq | ||
- redis-server | ||
matrix: | ||
allow_failures: | ||
- rvm: ruby-head | ||
- rvm: jruby-head |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
source 'https://rubygems.org' | ||
gemspec | ||
|
||
gem 'rake' | ||
gem 'rspec', '~> 2.99.0' | ||
gem 'rspec-retry', :require => false | ||
gem 'mocha', :require => false | ||
|
||
gem 'activerecord', '~> 4.0' | ||
gem 'database_cleaner' | ||
gem 'simplecov', :require => false | ||
gem 'coveralls', :require => false | ||
|
||
platforms :ruby do | ||
gem 'mysql2' | ||
end | ||
|
||
platforms :jruby do | ||
gem 'jruby-openssl' | ||
gem 'activerecord-jdbcpostgresql-adapter' | ||
gem 'hot_bunnies' | ||
end | ||
|
||
group :development do | ||
gem 'pry' | ||
gem 'colorize' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
active_record_mysql.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
require 'active_record' | ||
|
||
if ENV['LOGGER_LEVEL'] | ||
ActiveRecord::Base.logger = Logger.new(STDERR) | ||
ActiveRecord::Base.logger.level = ENV['LOGGER_LEVEL'].to_i | ||
end | ||
|
||
db_settings = { | ||
:adapter => "mysql2", | ||
:database => "promiscuous", | ||
:username => "root", | ||
:password => nil, | ||
:encoding => "utf8", | ||
:pool => 20, | ||
} | ||
|
||
ActiveRecord::Base.establish_connection(db_settings.merge('database' => 'mysql')) | ||
ActiveRecord::Base.connection.drop_database(db_settings[:database]) rescue nil | ||
ActiveRecord::Base.connection.create_database(db_settings[:database]) | ||
ActiveRecord::Base.establish_connection(db_settings) | ||
|
||
load 'spec/spec_helper/sql.rb' |
Oops, something went wrong.