summaryrefslogtreecommitdiff
path: root/buildbot
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-02-06 04:06:40 +0100
committerFlorian Dold <florian.dold@gmail.com>2018-02-06 04:06:40 +0100
commitc6d43b1274c044c275f8dbea343aff33593a7485 (patch)
treea258df7a7e2e95a62b0bdeaf7ea97b986c7527a7 /buildbot
parent94c7476dc8dc7a343e036d0cfaf52514d5c08610 (diff)
downloaddeployment-c6d43b1274c044c275f8dbea343aff33593a7485.tar.gz
deployment-c6d43b1274c044c275f8dbea343aff33593a7485.tar.bz2
deployment-c6d43b1274c044c275f8dbea343aff33593a7485.zip
build docs the same way as blue/green
Diffstat (limited to 'buildbot')
-rwxr-xr-xbuildbot/build-docs.sh14
-rw-r--r--buildbot/master.cfg24
2 files changed, 18 insertions, 20 deletions
diff --git a/buildbot/build-docs.sh b/buildbot/build-docs.sh
new file mode 100755
index 0000000..92f5078
--- /dev/null
+++ b/buildbot/build-docs.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+set -eu
+
+cd $HOME/deployment
+
+# like "git pull", but discard local changes
+git fetch
+git reset --hard FETCH_HEAD
+
+cd $HOME/deployment/taler-docbuild
+./invalidate.sh
+
+make
diff --git a/buildbot/master.cfg b/buildbot/master.cfg
index 2ba4e4e..68761e8 100644
--- a/buildbot/master.cfg
+++ b/buildbot/master.cfg
@@ -266,32 +266,16 @@ SELENIUM_FACTORY.addStep(ShellCommand(
command=["launch_selenium_test"],
env={'PATH': "${HOME}/local/bin:/usr/lib/chromium:${PATH}"}))
-def doc_dispatcher(project):
- switch = {
- "docs-landing": ["./update_doc_landing.sh"],
- "api": ["./update_api.sh"],
- "backoffice": ["./update_doc_backoffice.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")
-
DOC_FACTORY = util.BuildFactory()
DOC_FACTORY.addStep(git_step(
"git://git.taler.net/deployment.git"))
DOC_FACTORY.addStep(ShellCommand(
name="build docs",
- description="Building documentation.",
+ description="Building documentation",
descriptionDone="Documentation built.",
- command=util.Transform(doc_dispatcher,
- util.Property("project")),
- workdir="build/taler-build"))
+ command=["./build-docs.sh"],
+ workdir="build/buildbot",
+ haltOnFailure=True))
DEBUG_BUILDER = util.BuilderConfig(
name="debug-builder",