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




commit b6746f64bb9f649fb0e97603a919ebc9727b494a
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 | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..c493451
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,36 @@
+image: fedora:latest
+stages:
+  - test
+  - docs
+  - deploy
+
+build:
+  stage: test
+  script:
+    - sudo dnf builddep jsonrpc-glib-devel -y
+    - meson _build
+    - ninja -C _build 
+
+reference:
+  stage: docs
+  script:
+    - 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]