From 49b3c54d027b3ed7e889a788c712efbb8f6434bf Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 12 Dec 2017 11:59:50 +0100 Subject: using right api to dispatch doc builds --- buildbot/master.cfg | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/buildbot/master.cfg b/buildbot/master.cfg index 9494fac..2e529a0 100644 --- a/buildbot/master.cfg +++ b/buildbot/master.cfg @@ -73,7 +73,7 @@ DOC_SCHEDULER = schedulers.SingleBranchScheduler( change_filter=util.ChangeFilter( branch="master", filter_fn=doc_filter, - project_re="api|www|bank|exchange|merchant|deployment|merchant-frontend-examples"), + project_re="help|api|www|bank|exchange|merchant|deployment|merchant-frontend-examples"), treeStableTimer=None) WALLET_SCHEDULER = schedulers.SingleBranchScheduler( @@ -262,13 +262,14 @@ SELENIUM_FACTORY.addStep(ShellCommand( def doc_dispatcher(project): switch = { - "api": "./update_api.sh", - "www": "./update_www_and_stage.sh", - "bank": "./update_bank.sh", - "merchant": "./update_doc_merchant.sh", - "exchange": "./update_doc_exchange.sh", - "merchant-frontend-examples": "./update_tutorials.sh", - "deployment": "./update_onboarding.sh", + "api": ["./update_api.sh"], + "www": ["./update_www_and_stage.sh"], + "bank": ["./update_bank.sh"], + "merchant": ["./update_doc_merchant.sh"], + "exchange": ["./update_doc_exchange.sh"], + "merchant-frontend-examples": ["./update_tutorials.sh"], + "deployment": ["./update_onboarding.sh"], + "help": ["echo", "dispatcher", "debug"] } # Force schedules trigger the default. return switch.get(project, "./update_api.sh") @@ -280,7 +281,7 @@ DOC_FACTORY.addStep(ShellCommand( name="build docs", description="Building documentation.", descriptionDone="Documentation built.", - command=[doc_dispatcher(util.Interpolate("%(prop:project)s"))], + command=util.Transform(doc_dispatcher, util.Property("project")), workdir="build/taler-build")) DEBUG_BUILDER = util.BuilderConfig( -- cgit v1.2.3