[IMP] runbot: added modules to install parameter at the branch level

This commit is contained in:
David Monjoie 2014-12-03 11:36:03 +01:00
parent 649a95f5ea
commit ca64d736d0
2 changed files with 4 additions and 2 deletions

View File

@ -294,7 +294,7 @@ class runbot_repo(osv.osv):
'committer': committer,
'subject': subject,
'date': dateutil.parser.parse(date[:19]),
'modules': branch.repo_id.modules,
'modules': ','.join(filter(None, [branch.repo_id.modules, branch.modules])),
}
Build.create(cr, uid, build_info)
@ -414,6 +414,7 @@ class runbot_branch(osv.osv):
'sticky': fields.boolean('Sticky', select=1),
'coverage': fields.boolean('Coverage'),
'state': fields.char('Status'),
'modules': fields.char("Modules to Install", help="Comma-separated list of modules to install and test."),
}
class runbot_build(osv.osv):
@ -607,7 +608,7 @@ class runbot_build(osv.osv):
additional_modules = []
if not os.path.isfile(build.server('__init__.py')):
# Use modules to test previously configured in the repository
modules_to_test = build.repo_id.modules
modules_to_test = build.modules
if not modules_to_test:
# Find modules to test from the folder branch
modules_to_test = ','.join(

View File

@ -66,6 +66,7 @@
<field name="branch_url"/>
<field name="sticky"/>
<field name="state"/>
<field name="modules"/>
</group>
</sheet>
</form>