+def bip39_factory():
+ path_env = {
+ "PATH": os.environ["BUILDBOT_PATH_BIP39"] + ":${PATH}"
+ }
+ factory = util.BuildFactory()
+ factory.addStep(steps.Git(logEnviron=False, repourl=E.BIP39_GIT_URL,
+ submodules=True, mode="full", method="copy"))
+ factory.addStep(steps.ShellCommand(name="build file",
+ logEnviron=False, haltOnFailure=True, workdir="source",
+ env=path_env, command=["python", "compile.py"]))
+ factory.addStep(steps.FileUpload(name="upload file", workersrc="bip39-standalone.html",
+ workdir="source", masterdest=E.BIP39_RELEASE_PATH + "/index.html",
+ url="https://tools.immae.eu/BIP39", mode=0o644))
+ factory.addStep(steps.MasterShellCommand(command="chmod -R a+rX {}".format(E.BIP39_RELEASE_PATH)))
+
+ return util.BuilderConfig(name="BIP39_build", workernames=["generic-worker-immae-eu"], factory=factory)
+