diff options
author | ng0 <ng0@n0.is> | 2019-10-21 15:38:18 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-10-21 15:38:18 +0000 |
commit | cb83a3ffa6d35d937e2937b30296b44296de9e83 (patch) | |
tree | 85d32099c55ded2be48b0d6449d7316bcb46aca6 /buildbot | |
parent | 046aa7e905b8d3f5c2207b64ed2af3e77ea93bfb (diff) | |
download | deployment-cb83a3ffa6d35d937e2937b30296b44296de9e83.tar.gz deployment-cb83a3ffa6d35d937e2937b30296b44296de9e83.tar.bz2 deployment-cb83a3ffa6d35d937e2937b30296b44296de9e83.zip |
add 2 builders, workers, and factories for the added system users.
Diffstat (limited to 'buildbot')
-rw-r--r-- | buildbot/master.cfg | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/buildbot/master.cfg b/buildbot/master.cfg index 90c4a60..a0224cd 100644 --- a/buildbot/master.cfg +++ b/buildbot/master.cfg @@ -60,6 +60,14 @@ c["workers"] = [ ## # This worker builds wallet-core. worker.Worker("wallet-worker", "wallet-pass"), + + ## + # health checks performed by wallet-cli for demo + worker.Worker("taler-demo-healthcheck", "taler-demo-healthcheck-pass"), + + ## + # health checks performed by wallet-cli for test + worker.Worker("taler-test-healthcheck", "taler-test-healthcheck-pass"), ] # 'protocols' contains information about protocols which master @@ -142,6 +150,26 @@ WALLET_SCHEDULER = schedulers.SingleBranchScheduler( builderNames=["wallet-builder"] ) +TALER_TEST_HEALTHCHECK = schedulers.SingleBranchScheduler( + name="taler-test-healthcheck-scheduler", + change_filter=util.ChangeFilter( + branch="master", + project_re="(wallet|deployment)" + ), + treeStableTimer=None, + builderNames=["taler-test-healthcheck"] +) + +TALER_DEMO_HEALTHCHECK = schedulers.SingleBranchScheduler( + name="taler-demo-healthcheck-scheduler", + change_filter=util.ChangeFilter( + branch="master", + project_re="(wallet|deployment)" + ), + treeStableTimer=None, + builderNames=["taler-demo-healthcheck"] +) + DEMO_SERVICES_CHECKER_SCHEDULER = schedulers.Periodic( name="demo-services-checker-scheduler", periodicBuildTimer=60 * 60, # 1 hour @@ -212,6 +240,8 @@ c["schedulers"] = [ ALL_SCHEDULER, FORCE_SCHEDULER, WALLET_SCHEDULER, + TALER_DEMO_HEALTHCHECK, + TALER_TEST_HEALTHCHECK, ## # Rarely/never used, excluding. @@ -238,6 +268,66 @@ def git_step(repo): branch="master" ) +TALER_DEMO_HEALTHCHECK_FACTORY = util.BuildFactory() +TALER_DEMO_HEALTHCHECK_FACTORY.addStep(git_step("git://git.taler.net/wallet-core.git")) +TALER_DEMO_HEALTHCHECK_FACTORY.addStep( + ShellCommand( + name="fetch", + description="Running yarn install", + descriptionDone="Correctly installed", + command=["npm", "install", "-g", "--prefix", "$HOME", "taler-wallet"], + workdir="build/" + ) +) +TALER_DEMO_HEALTHCHECK_FACTORY.addStep( + ShellCommand( + name="test-withdraw", + description="Running wallet withdraw tests", + descriptionDone="Test correctly run", + command=["timeout", "--preserve-status", "5m", "./$HOME/bin/taler-wallet-cli", "integrationtest", "--verbose", "-b", "https://bank.demo.taler.net", "-w", "TESTKUDOS:10"], + workdir="build/", + ) +) +TALER_DEMO_HEALTHCHECK_FACTORY.addStep( + ShellCommand( + name="test-spend", + description="Running wallet spend tests", + descriptionDone="Test correctly run", + command=["timeout", "--preserve-status", "5m", "./$HOME/bin/taler-wallet-cli", "integrationtest", "--verbose", "-b", "https://bank.demo.taler.net", "-s", "TESTKUDOS:4"], + workdir="build/", + ) +) + +TALER_TEST_HEALTHCHECK_FACTORY = util.BuildFactory() +TALER_TEST_HEALTHCHECK_FACTORY.addStep(git_step("git://git.taler.net/wallet-core.git")) +TALER_TEST_HEALTHCHECK_FACTORY.addStep( + ShellCommand( + name="fetch", + description="Running yarn install", + descriptionDone="Correctly installed", + command=["npm", "install", "-g", "--prefix", "$HOME", "taler-wallet"], + workdir="build/" + ) +) +TALER_TEST_HEALTHCHECK_FACTORY.addStep( + ShellCommand( + name="test-withdraw", + description="Running wallet withdraw tests", + descriptionDone="Test correctly run", + command=["timeout", "--preserve-status", "5m", "./$HOME/bin/taler-wallet-cli", "integrationtest", "--verbose", "-b", "https://bank.test.taler.net", "-w", "TESTKUDOS:10"], + workdir="build/", + ) +) +TALER_TEST_HEALTHCHECK_FACTORY.addStep( + ShellCommand( + name="test-spend", + description="Running wallet spend tests", + descriptionDone="Test correctly run", + command=["timeout", "--preserve-status", "5m", "./$HOME/bin/taler-wallet-cli", "integrationtest", "--verbose", "-b", "https://bank.test.taler.net", "-s", "TESTKUDOS:4"], + workdir="build/", + ) +) + WALLET_FACTORY = util.BuildFactory() WALLET_FACTORY.addStep(git_step("git://git.taler.net/wallet-core.git")) @@ -563,6 +653,18 @@ WALLET_BUILDER = util.BuilderConfig( factory=WALLET_FACTORY ) +TALER_TEST_HEALTHCHECK_BUILDER = util.BuilderConfig( + name="taler-test-healthcheck-builder", + workernames=["taler-test-healthcheck"], + factory=TALER_TEST_HEALTHCHECK_FACTORY +) + +TALER_DEMO_HEALTHCHECK_BUILDER = util.BuilderConfig( + name="taler-demo-healthcheck-builder", + workernames=["taler-demo-healthcheck"], + factory=TALER_DEMO_HEALTHCHECK_FACTORY +) + c["builders"] = [ LCOV_BUILDER, AUDITOR_BUILDER_TEST, @@ -574,6 +676,8 @@ c["builders"] = [ DOC_BUILDER, SITES_BUILDER, WALLET_BUILDER, + TALER_DEMO_HEALTHCHECK_BUILDER, + TALER_TEST_HEALTHCHECK_BUILDER, ] ####### BUILDBOT SERVICES @@ -640,6 +744,8 @@ BUILDER_LIST = [ "sites-builder", "test-builder", "wallet-builder", + "taler-demo-healthcheck", + "taler-test-healthcheck", ] authz = util.Authz( |