runbot/runbot_cla
Xavier Morel 8c73e6a901 [IMP] runbot: add a job_type on branch and build
Since the runbot_merge module, some branches does not need to be built.
For example the tmp.* branches.
Some other branches does need to be tested but it could be useless to
keep them running. For example the staging branches.
Finally, some builds are generated by server actions during the night.
Those builds does not need to be kept running despite the branch configuration.

For example, the master branch can be configured to create builds with
testing and running but nightly multiple builds can be generated with
testing only.

For that purpose, this commit adds a job_type selection field on the
branch. That way, a branch can be configured by selecting the type of
jobs wanted.
A same kind of job_type was also added on the build that uses the
branch's value if nothing is specified at build creation.

A decorator is used on the job_ methods to specify their job types.
For example, a job method decorated by 'testing' will run if the
branch/build job_type is 'testing' or 'all'.
2019-01-22 14:18:58 +01:00
..
__init__.py [REF] runbot, runbot_cla: upgrade to Odoo 11.0 2018-03-12 14:36:33 +01:00
__manifest__.py [REF] runbot, runbot_cla: upgrade to Odoo 11.0 2018-03-12 14:36:33 +01:00
runbot.py [IMP] runbot: add a job_type on branch and build 2019-01-22 14:18:58 +01:00