ci.rake: use 'jdbcsqlite3' for JRuby
git-svn-id: http://svn.redmine.org/redmine/trunk@12258 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0707c7a12d
commit
ccf55e65f0
|
@ -55,8 +55,9 @@ file 'config/database.yml' do
|
||||||
'host' => 'localhost',
|
'host' => 'localhost',
|
||||||
'username' => 'jenkins', 'password' => 'jenkins'}
|
'username' => 'jenkins', 'password' => 'jenkins'}
|
||||||
test_conf = dev_conf.merge('database' => test_db_name)
|
test_conf = dev_conf.merge('database' => test_db_name)
|
||||||
when 'sqlite3'
|
when /sqlite3/
|
||||||
dev_conf = {'adapter' => 'sqlite3',
|
dev_conf = {'adapter' => (Object.const_defined?(:JRUBY_VERSION) ?
|
||||||
|
'jdbcsqlite3' : 'sqlite3'),
|
||||||
'database' => "db/#{dev_db_name}.sqlite3"}
|
'database' => "db/#{dev_db_name}.sqlite3"}
|
||||||
test_conf = dev_conf.merge('database' => "db/#{test_db_name}.sqlite3")
|
test_conf = dev_conf.merge('database' => "db/#{test_db_name}.sqlite3")
|
||||||
when 'sqlserver'
|
when 'sqlserver'
|
||||||
|
|
Loading…
Reference in New Issue