Merge pull request #22693 from yui-knk/use_appropriate_rebuild_task

Use an appropriate rebuild task on Travis
This commit is contained in:
Yves Senn 2015-12-21 16:57:43 +01:00
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