[help.gnome.org: 6/14] ci: Split jobs




commit b32853865ce88b92eb6c015f81dbdc64548a5f76
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Sep 28 20:44:58 2021 +0100

    ci: Split jobs
    
    Build only the default language on all refs, and the full translated
    site on the main development branch.

 .gitlab-ci.yml | 47 ++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 42 insertions(+), 5 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 59e7195..7b27034 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,7 +10,7 @@ stages:
     - dnf install -y ${FEDORA_DEPS}
     - pip3 install --user ${PIP_DEPS}
 
-help-web:
+help-web-en:
   stage: build
   extends: .build-fedora
   needs: []
@@ -22,11 +22,44 @@ help-web:
       gettext-devel
       git
       itstool
+      libxslt
       libyaml
     PIP_DEPS:
       lxml
       pyyaml
-  timeout: 3h
+  timeout: 6h
+  script:
+    - mkdir -p __pintail__ && cd __pintail__
+    - git clone --depth=1 https://github.com/projectmallard/pintail.git
+    - cd pintail && pip3 install --user -e . && cd ..
+    - git clone --depth=1 https://github.com/projectmallard/mallard-ducktype.git
+    - cd mallard-ducktype && pip3 install --user -e . && cd ..
+    - cd ..
+    - pintail build -v --local
+    - mv __pintail__/build help-web-C
+  artifacts:
+    when: always
+    paths:
+      - help-web-C
+
+help-web-full:
+  stage: build
+  extends: .build-fedora
+  needs: []
+  variables:
+    FEDORA_DEPS:
+      diffutils
+      docbook-dtds
+      gcc
+      gettext-devel
+      git
+      itstool
+      libxslt
+      libyaml
+    PIP_DEPS:
+      lxml
+      pyyaml
+  timeout: 6h
   script:
     - mkdir -p __pintail__ && cd __pintail__
     - git clone --depth=1 https://github.com/projectmallard/pintail.git
@@ -41,13 +74,17 @@ help-web:
   artifacts:
     when: always
     paths:
-      - help-web
+      - help-web-full
+  only:
+    refs:
+      - master
+      - main
 
 pages:
   stage: deploy
-  needs: ['help-web']
+  needs: ['help-web-full']
   script:
-    - mv help-web public
+    - mv help-web-full public
   artifacts:
     paths:
       - public


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]