Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Travis CI build errors. Closes #1224 #1255

Merged
merged 1 commit into from
Jan 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ gemfile:
- gemfiles/Gemfile.rails3.2
- gemfiles/Gemfile.rails4.1
- gemfiles/Gemfile.rails5.0
before_install:
- which bundle >/dev/null 2>&1 || gem install bundler
matrix:
exclude:
- rvm: 1.9.3
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ group :test do
gem 'webmock'

platforms :ruby do
gem 'pg'
gem 'pg', '~> 0.11'
gem 'mysql2', '~> 0.3.11'
end

platforms :jruby do
gem 'jdbc-mysql'
gem 'jdbc-sqlite3'
gem 'activerecord-jdbcpostgresql-adapter'
gem 'activerecord-jdbcpostgresql-adapter', '~> 1.3.0'
end
end

Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace :db do

desc 'Drop the MySQL test databases'
task :drop do
`mysqladmin --user=#{config['mysql']['username']} -f drop #{config['mysql']['database']}`
`mysql --user=#{config['mysql']['username']} -e "DROP DATABASE IF EXISTS #{config['mysql']['database']}"`
end
end

Expand All @@ -44,7 +44,7 @@ namespace :db do

desc 'Drop the PostgreSQL test databases'
task :drop do
`dropdb #{config['postgres']['database']}`
`dropdb --if-exists #{config['postgres']['database']}`
end
end

Expand Down
4 changes: 2 additions & 2 deletions gemfiles/Gemfile.rails3.2
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ group :test do
gem 'webmock'

platforms :ruby do
gem 'pg'
gem 'pg', '~> 0.11'
gem 'mysql2', '~> 0.3.11'
end

platforms :jruby do
gem 'jdbc-mysql'
gem 'jdbc-sqlite3'
gem 'activerecord-jdbcpostgresql-adapter'
gem 'activerecord-jdbcpostgresql-adapter', '~> 1.3.0'
end
end
4 changes: 2 additions & 2 deletions gemfiles/Gemfile.rails4.1
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ group :test do
gem 'webmock'

platforms :ruby do
gem 'pg'
gem 'pg', '~> 0.11'
gem 'mysql2', '~> 0.3.11'
end

platforms :jruby do
gem 'jdbc-mysql'
gem 'jdbc-sqlite3'
gem 'activerecord-jdbcpostgresql-adapter'
gem 'activerecord-jdbcpostgresql-adapter', '~> 1.3.0'
end
end
2 changes: 1 addition & 1 deletion gemfiles/Gemfile.rails5.0
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ group :test do
gem 'webmock'

platforms :ruby do
gem 'pg'
gem 'pg', '~> 0.18'
gem 'mysql2', '~> 0.3.11'
end

Expand Down