Merge pull request #22693 from yui-knk/use_appropriate_rebuild_task
Use an appropriate rebuild task on Travis
This commit is contained in:
commit
c3989819ea
@ -60,7 +60,14 @@ def heading
|
||||
|
||||
def tasks
|
||||
if activerecord?
|
||||
['db:mysql:rebuild', "#{adapter}:#{'isolated_' if isolated?}test"]
|
||||
tasks = ["#{adapter}:#{'isolated_' if isolated?}test"]
|
||||
case adapter
|
||||
when 'mysql2'
|
||||
tasks.unshift 'db:mysql:rebuild'
|
||||
when 'postgresql'
|
||||
tasks.unshift 'db:postgresql:rebuild'
|
||||
end
|
||||
tasks
|
||||
else
|
||||
["test", ('isolated' if isolated?), ('integration' if integration?)].compact.join(":")
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user