Skip to content

Commit

Permalink
Travis: Test with PostgresSQL as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ledermann committed Nov 5, 2015
1 parent 1f179fe commit f38d538
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -16,5 +16,7 @@ sudo: false
env:
- DB=sqlite
- DB=mysql
- DB=postgres
before_script:
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS unread_test;'; fi"
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database unread_test;' -U postgres; fi"
1 change: 1 addition & 0 deletions ci/Gemfile-rails-3-0
Expand Up @@ -3,6 +3,7 @@ source 'https://rubygems.org'
gem 'activerecord', '~> 3.0.20'
gem 'sqlite3'
gem 'activerecord-mysql2-adapter'
gem 'pg'
gem 'timecop'
gem 'rake'
gem 'rspec'
Expand Down
1 change: 1 addition & 0 deletions ci/Gemfile-rails-3-1
Expand Up @@ -3,6 +3,7 @@ source 'https://rubygems.org'
gem 'activerecord', '~> 3.1.12'
gem 'sqlite3'
gem 'mysql2', '~> 0.3.10'
gem 'pg'
gem 'timecop'
gem 'rake'
gem 'rspec'
Expand Down
1 change: 1 addition & 0 deletions ci/Gemfile-rails-3-2
Expand Up @@ -3,6 +3,7 @@ source 'https://rubygems.org'
gem 'activerecord', '~> 3.2.17'
gem 'sqlite3'
gem 'mysql2', '~> 0.3.10'
gem 'pg'
gem 'timecop'
gem 'rake'
gem 'rspec'
Expand Down
1 change: 1 addition & 0 deletions ci/Gemfile-rails-4-0
Expand Up @@ -3,6 +3,7 @@ source 'https://rubygems.org'
gem 'activerecord', '~> 4.0.4'
gem 'sqlite3'
gem 'mysql2', '~> 0.3.10'
gem 'pg'
gem 'timecop'
gem 'rake'
gem 'rspec'
Expand Down
1 change: 1 addition & 0 deletions ci/Gemfile-rails-4-1
Expand Up @@ -3,6 +3,7 @@ source 'https://rubygems.org'
gem 'activerecord', '~> 4.1.0'
gem 'sqlite3'
gem 'mysql2', '~> 0.3.13'
gem 'pg'
gem 'timecop'
gem 'rake'
gem 'rspec'
Expand Down
1 change: 1 addition & 0 deletions ci/Gemfile-rails-4-2
Expand Up @@ -3,6 +3,7 @@ source 'https://rubygems.org'
gem 'activerecord', '~> 4.2.0'
gem 'sqlite3'
gem 'mysql2', '~> 0.3.13'
gem 'pg'
gem 'timecop'
gem 'rake'
gem 'rspec'
Expand Down
4 changes: 4 additions & 0 deletions spec/database.yml
Expand Up @@ -6,3 +6,7 @@ mysql:
database: unread_test
username: root
encoding: utf8
postgres:
adapter: postgresql
database: unread_test
username: postgres
3 changes: 2 additions & 1 deletion unread.gemspec
Expand Up @@ -25,7 +25,8 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rake'
s.add_development_dependency 'timecop'
s.add_development_dependency 'sqlite3'
s.add_development_dependency 'mysql2'
s.add_development_dependency 'mysql2', '~> 0.3.13'
s.add_development_dependency 'pg'
s.add_development_dependency 'rspec'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'coveralls', '>= 0.8.0'
Expand Down

0 comments on commit f38d538

Please sign in to comment.