[jsonrpc-glib/bilelmoussaoui/gi-docgen] CI: Add a basic test/docs jobs




commit 3b40342ad400f72c0215df96f695ae931c2d9bfd
Author: Bilal Elmoussaoui <belmouss redhat com>
Date:   Sat Feb 5 17:05:56 2022 +0100

    CI: Add a basic test/docs jobs

 .gitlab-ci.yml | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..d96c7c8
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,38 @@
+image: fedora:latest
+stages:
+  - test
+  - docs
+  - deploy
+
+build:
+  stage: test
+  script:
+    - sudo dnf install 'dnf-command(builddep)' -y
+    - sudo dnf builddep jsonrpc-glib-devel -y
+    - meson _build
+    - ninja -C _build 
+
+reference:
+  stage: docs
+  script:
+    - sudo dnf install 'dnf-command(builddep)' -y
+    - sudo dnf builddep jsonrpc-glib-devel -y
+    - mkdir -p pfx/
+    - meson --prefix=${PWD}/pfx -Denable_gtk_doc=true _build
+    - ninja -C _build install
+    - mkdir -p _reference/
+    - mv pfx/share/doc/jsonrpc-glib/ _reference/
+  artifacts:
+    paths:
+      - _reference
+
+pages:
+  stage: deploy
+  needs: ['reference']
+  script:
+    - mv _reference public/
+  artifacts:
+    paths:
+      - public
+  only:
+    - main


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