Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
Create databases in travis-ci run
Browse files Browse the repository at this point in the history
  • Loading branch information
dbussink committed Jul 27, 2011
1 parent 4b6998a commit a72499c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ task :default => [:spec]
desc 'Run all the specs for the subprojects'
task :spec do

commands = [
'mysql -e "create database do_test;"',
'psql -c "create database do_test;" -U postgres',
]

commands.each do |command|
system("#{command} > /dev/null 2>&1")
end

spec_projects = %w[do_mysql do_postgres do_sqlite3]
if JRUBY
spec_projects += %w[do_derby do_h2 do_hsqldb]
Expand Down

0 comments on commit a72499c

Please sign in to comment.