[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-deployment] 01/02: pylint worker
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-deployment] 01/02: pylint worker |
Date: |
Sat, 04 Nov 2017 11:01:25 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository deployment.
commit 9527aee524dd05612df97097b3d34de1116d69cb
Author: Marcello Stanisci <address@hidden>
AuthorDate: Sat Nov 4 10:31:01 2017 +0100
pylint worker
---
buildbot/master.cfg | 44 ++++++++++++++++++++++++++++++++++++++++++--
doc/onboarding.texi | 2 +-
2 files changed, 43 insertions(+), 3 deletions(-)
diff --git a/buildbot/master.cfg b/buildbot/master.cfg
index 42a4155..112c879 100644
--- a/buildbot/master.cfg
+++ b/buildbot/master.cfg
@@ -23,6 +23,7 @@ c["workers"] = [worker.Worker("lcov-worker", "lcov-pass"),
worker.Worker("doc-worker", "doc-pass"),
worker.Worker("switcher-worker", "switcher-pass"),
worker.Worker("debug-worker", "debug-pass"),
+ worker.Worker("lint-worker", "lint-pass"),
worker.Worker("wallet-worker", "wallet-pass")]
# 'protocols' contains information about protocols which master will use for
@@ -78,6 +79,13 @@ debug_scheduler = schedulers.SingleBranchScheduler(
treeStableTimer=None,
builderNames=["debug-builder"])
+# Consider adding other Python parts, like the various frontends.
+lint_scheduler = schedulers.SingleBranchScheduler(
+ name="lint-scheduler",
+ change_filter=util.ChangeFilter(branch="master", project_re="bank"),
+ treeStableTimer=None,
+ builderNames=["lint-builder"])
+
# Provide "force" button in the web UI
force_scheduler = schedulers.ForceScheduler(
name="force-scheduler",
@@ -88,7 +96,12 @@ force_scheduler = schedulers.ForceScheduler(
"doc-builder",
"wallet-builder"])
-c["schedulers"] = [doc_scheduler, wallet_scheduler, all_scheduler,
force_scheduler, debug_scheduler]
+c["schedulers"] = [doc_scheduler,
+ wallet_scheduler,
+ all_scheduler,
+ force_scheduler,
+ debug_scheduler,
+ lint_scheduler]
####### BUILDERS
@@ -130,6 +143,22 @@ debug_factory.addStep(ShellCommand(name="echo debug",
descriptionDone="builder responded",
command=["echo", "I'm here!"]))
+lint_factory = util.BuildFactory()
+lint_factory.addStep(Git(repourl='git://git.taler.net/bank.git',
+ mode="full",
+ method="fresh",
+ logEnviron=False,
+ alwaysUseLatest=True,
+ haltOnFailure=True,
+ branch="master"))
+lint_factory.addStep(ShellCommand(name="code linter",
+ description="running static analysis",
+ descriptionDone="static analysis done",
+ command=["pylint",
+ "--load_plugins",
+ "pylint_django",
+ "talerbank/"]))
+
lcov_factory = util.BuildFactory()
lcov_factory.addStep(Git(repourl='git://git.taler.net/deployment.git',
@@ -218,6 +247,11 @@ debug_builder = util.BuilderConfig(
workernames=["debug-worker"],
factory=debug_factory)
+lint_builder = util.BuilderConfig(
+ name="lint-builder",
+ workernames=["lint-worker"],
+ factory=lint_factory)
+
lcov_builder = util.BuilderConfig(
name="lcov-builder",
workernames=["lcov-worker"],
@@ -243,7 +277,13 @@ wallet_builder = util.BuilderConfig(
workernames=["wallet-worker"],
factory=wallet_factory)
-c["builders"] = [lcov_builder, switcher_builder, selenium_builder,
doc_builder, wallet_builder, debug_builder]
+c["builders"] = [lcov_builder,
+ switcher_builder,
+ selenium_builder,
+ doc_builder,
+ wallet_builder,
+ debug_builder,
+ lint_builder]
####### BUILDBOT SERVICES
diff --git a/doc/onboarding.texi b/doc/onboarding.texi
index 4c31304..de520ad 100644
--- a/doc/onboarding.texi
+++ b/doc/onboarding.texi
@@ -146,7 +146,7 @@ is not needed by any production codebase.
@subsection Python linter
This worker is responsible for running Python static analysis, and it
-is served by the user @code{pylinter}.
+is served by the user @code{linter}.
@subsection Documentation worker
--
To stop receiving notification emails like this one, please contact
address@hidden