]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Make some adjustments for Denise aventuriers page
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 10 Aug 2020 22:42:22 +0000 (00:42 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 10 Aug 2020 22:42:22 +0000 (00:42 +0200)
modules/private/buildbot/projects/denise/__init__.py
modules/private/websites/denise/aventuriers.nix

index bd460d16d7dec45264ef5b47ec10669908aea4a3..e91e17a4a2c392c0ceece592546c3283a3cbbf66 100644 (file)
@@ -83,22 +83,25 @@ def denise_aventuriers_factory():
 
     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)))
 
index 33df53edb65bd26251cb0a7232b75e4668c58386..2bbf7bf784efc2ad4469728add137c6e923450b5 100644 (file)
@@ -14,7 +14,7 @@ in {
       extraConfig  = [
         ''
           <Directory ${varDir}>
-            DirectoryIndex index.html
+            DirectoryIndex aventuriers.html
             Options Indexes FollowSymLinks MultiViews Includes
             AllowOverride None
             Require all granted