Skip to content

Commit

Permalink
Merge pull request #1255 from abevoelker/fix-travis
Browse files Browse the repository at this point in the history
Fix Travis CI build errors. Closes #1224
  • Loading branch information
alexreisner authored Jan 11, 2018
2 parents d49ef47 + eed7875 commit 82687a2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
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

0 comments on commit 82687a2

Please sign in to comment.