[gdk-pixbuf/doc-fixes] ci: Build and deploy the API reference



commit 461530a792c123b7010d46af8c0795b1c63a29a4
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Jun 26 11:27:51 2020 +0100

    ci: Build and deploy the API reference

 .gitlab-ci.yml | 44 +++++++++++++++++++++++++++++++++++---------
 1 file changed, 35 insertions(+), 9 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 326917703..2858ba5e8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,17 +1,13 @@
 stages:
   - build
+  - deploy
 
-.cache-paths: &cache-paths
-  paths:
-    - _ccache/
-
-meson-fedora-x86_64:
+.build-linux:
   image: registry.gitlab.gnome.org/gnome/gdk-pixbuf/master:v2
   stage: build
-  variables:
-    BUILD_OPTS: "-Dpng=true -Djpeg=true -Dtiff=true -Djasper=true"
   script:
-    - bash -x ./.gitlab/ci/test-docker.sh
+    - meson ${BUILD_OPTS} _build .
+    - ninja -C _build
   artifacts:
     when: on_failure
     name: "gdk-pixbuf-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
@@ -19,7 +15,37 @@ meson-fedora-x86_64:
       - "${CI_PROJECT_DIR}/build_*/meson-logs"
   cache:
     key: "$CI_JOB_NAME"
-    <<: *cache-paths
+    paths:
+      - _ccache/
+
+meson-fedora-x86_64:
+  extends: .build-linux
+  variables:
+    BUILD_OPTS: "-Dpng=true -Djpeg=true -Dtiff=true -Djasper=true"
+  after_script:
+    - meson test -C _build -t 3
+
+docs:
+  extends: .build-linux
+  variables:
+    BUILD_OPTS: "-Dgtk_doc=true"
+  after_script:
+    - ninja -C _build gdk-pixbuf-doc
+    - mv _build/docs/html _reference
+  artifacts:
+    when: on_success
+    paths:
+      - _reference
+
+pages:
+  stage: deploy
+  script:
+    - mv _reference public
+  artifacts:
+    paths:
+      - public
+  only:
+    - master
 
 msys2-mingw64:
   stage: build


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