[jhbuild] CI: Deploy docs to gitlab pages



commit 8fa013fd07f7283ab10ad07b3692c62b70b56377
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Wed Sep 4 21:56:37 2019 +0200

    CI: Deploy docs to gitlab pages

 .gitlab-ci.yml        | 23 ++++++++++++++++++++++-
 .gitlab-ci/Dockerfile |  3 +++
 2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5436938f..e337f971 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,6 @@
 stages:
   - test
+  - deploy
 
 test:
   image: registry.gitlab.gnome.org/gnome/jhbuild/jhbuild:v2
@@ -9,6 +10,14 @@ test:
     - make
     - make install
     - make distcheck
+    - cd ../doc
+    - xmlto html -m custom.xsl C/index.docbook -o public
+    - cp jhbuild.css public
+    - mv public ..
+  artifacts:
+    paths:
+      - public
+
 
 ubuntu-19.04-glib:
   image: registry.gitlab.gnome.org/gnome/jhbuild/jhbuild:v2
@@ -22,4 +31,16 @@ ubuntu-19.04-glib:
     - sudo apt-file update
     - jhbuild --no-interact --exit-on-error sysdeps --install --assume-yes glib
     - sudo apt install -y zlib1g-dev docbook-xml docbook-xsl python3-setuptools
-    - jhbuild --no-interact --exit-on-error build glib
\ No newline at end of file
+    - jhbuild --no-interact --exit-on-error build glib
+
+pages:
+  image: alpine:latest
+  stage: deploy
+  needs: ["test"]
+  script:
+   - echo
+  artifacts:
+    paths:
+      - public
+  only:
+    - master
diff --git a/.gitlab-ci/Dockerfile b/.gitlab-ci/Dockerfile
index 29aa0d6e..714d2e17 100644
--- a/.gitlab-ci/Dockerfile
+++ b/.gitlab-ci/Dockerfile
@@ -1,5 +1,7 @@
 FROM ubuntu:disco
 
+ENV DEBIAN_FRONTEND=noninteractive
+
 RUN apt update && apt install -y \
     apt-file \
     autoconf \
@@ -14,6 +16,7 @@ RUN apt update && apt install -y \
     python \
     sudo \
     trang \
+    xmlto \
     yelp-tools
 
 RUN useradd -u 1000 -ms /bin/bash user


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