forked from GKernelCI/GBuildbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
builders.py
47 lines (39 loc) · 1.78 KB
/
builders.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env python
# -*- coding: utf-8 -*-
####### BUILDERS
# The 'builders' list defines the Builders, which tell Buildbot how to perform a build:
# what steps, and which workers can execute them. Note that any particular build will
# only take place on one worker.
import config.factory
from config.factory.images_builder import *
from buildbot.plugins import *
from buildbot.plugins import reporters, util
from buildbot.process.properties import Interpolate
from config.settings import branches_list, get_arches, get_workers_for
import os
builders = []
architecture_testing_list = get_arches()
for kernel_branch in branches_list:
for arch in architecture_testing_list:
for toolchain in arch["toolchain"]:
tags = []
tags.append(toolchain["name"])
tags.append(arch["name"])
tags.append(kernel_branch)
builders.append(
util.BuilderConfig(name=kernel_branch + ':' + arch["name"] + ':' + toolchain["name"],
tags=tags,
workernames=get_workers_for(arch["name"], toolchain["name"]),
factory=download_new_patch_and_build_kernel(kernel_branch, arch["name"])))
builders.append(
util.BuilderConfig(name='gentoo_sources',
workernames=get_workers_for("gentoo_sources", None),
factory=test_gentoo_sources()))
builders.append(
util.BuilderConfig(name='other_sources',
workernames=get_workers_for("other_sources", None),
factory=test_gentoo_sources()))
builders.append(
util.BuilderConfig(name='eclass_change',
workernames=get_workers_for("eclass_change", None),
factory=test_gentoo_sources()))