factory = util.BuildFactory()
factory.addStep(steps.Git(logEnviron=False, repourl=E.AVENTURIERS_GIT_URL,
- submodules=True, mode="full", method="copy"))
+ submodules=True, mode="full", method="fresh"))
factory.addStep(steps.ShellCommand(name="build files",
- logEnviron=False, haltOnFailure=True, workdir="source",
+ logEnviron=False, haltOnFailure=True, workdir="build",
env=path_env, command=["make", "tout", "encyclo"]))
factory.addStep(steps.MasterShellCommand(command="rm -rf {}".format(E.AVENTURIERS_RELEASE_PATH)))
- factory.addStep(steps.DirectoryUpload(workersrc="../source/html",
+ factory.addStep(steps.DirectoryUpload(workersrc="../build/html",
masterdest=E.AVENTURIERS_RELEASE_PATH,
url="https://aventuriers.syanni.eu"))
+ factory.addStep(steps.FileUpload(name="upload epub file", workersrc="aventuriers.epub",
+ workdir="build", masterdest=E.AVENTURIERS_RELEASE_PATH + "/aventuriers.epub",
+ url="https://aventuriers.syanni.eu/aventuriers.epub", mode=0o644))
factory.addStep(steps.FileUpload(name="upload mobi file", workersrc="aventuriers.mobi",
- workdir="source", masterdest=E.AVENTURIERS_RELEASE_PATH + "/aventuriers.mobi",
+ workdir="build", masterdest=E.AVENTURIERS_RELEASE_PATH + "/aventuriers.mobi",
url="https://aventuriers.syanni.eu/aventuriers.mobi", mode=0o644))
factory.addStep(steps.FileUpload(name="upload pdf file", workersrc="aventuriers.pdf",
- workdir="source", masterdest=E.AVENTURIERS_RELEASE_PATH + "/aventuriers.pdf",
+ workdir="build", masterdest=E.AVENTURIERS_RELEASE_PATH + "/aventuriers.pdf",
url="https://aventuriers.syanni.eu/aventuriers.pdf", mode=0o644))
factory.addStep(steps.FileUpload(name="upload encyclo pdf file", workersrc="encyclo.pdf",
- workdir="source", masterdest=E.AVENTURIERS_RELEASE_PATH + "/encyclo.pdf",
+ workdir="build", masterdest=E.AVENTURIERS_RELEASE_PATH + "/encyclo.pdf",
url="https://aventuriers.syanni.eu/encyclo.pdf", mode=0o644))
factory.addStep(steps.MasterShellCommand(command="chmod -R a+rX {}".format(E.AVENTURIERS_RELEASE_PATH)))