Skip to content

Commit 20f2d26

Browse files
author
whitequark
committedJan 19, 2018
Allow building two board packages in artiq-quick.
1 parent f29aeec commit 20f2d26

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed
 

‎master.cfg

+11-11
Original file line numberDiff line numberDiff line change
@@ -454,17 +454,14 @@ def addFlockReleaseSteps(factory, board):
454454
locks = default_locks))
455455

456456
def addTriggerSteps(factory, builder_names, alwaysUseLatest,
457-
waitForFinish=False,
458-
copy_properties=[], set_properties={}):
457+
waitForFinish=False, **kwargs):
459458
factory.addStep(
460459
Trigger(
461460
schedulerNames = map(lambda name: 'trigger-{}'.format(name),
462461
builder_names),
463462
alwaysUseLatest = alwaysUseLatest,
464463
waitForFinish = waitForFinish,
465-
haltOnFailure = waitForFinish,
466-
copy_properties = copy_properties,
467-
set_properties = set_properties))
464+
haltOnFailure = waitForFinish))
468465

469466
from buildbot.config import BuilderConfig
470467

@@ -641,12 +638,15 @@ addCondaBuildSteps(artiqQuickBuildFactory,
641638
addCondaUploadSteps(artiqQuickBuildFactory,
642639
label='%(channel:-quick)s')
643640
# Build and upload the `artiq-board-*` package
644-
addTriggerSteps(artiqQuickBuildFactory,
645-
builder_names=["artiq-board"],
646-
alwaysUseLatest=False,
647-
waitForFinish=True,
648-
set_properties={"package": WithProperties('artiq-%(board)s'),
649-
"channel": WithProperties('%(channel:-quick)s')})
641+
for var in ["board1", "board2"]:
642+
addTriggerSteps(artiqQuickBuildFactory,
643+
builder_names=["artiq-board"],
644+
alwaysUseLatest=False,
645+
waitForFinish=True,
646+
set_properties={"package": WithProperties('artiq-%(' + var + ')s'),
647+
"channel": WithProperties('%(channel:-quick)s')},
648+
doStepIf=lambda step: step.getProperty(var),
649+
hideStepIf=lambda step, result: result == SKIPPED)
650650

651651
c['builders'].append(
652652
BuilderConfig(

0 commit comments

Comments
 (0)
Please sign in to comment.