[tracker/sam/ci-docs] ci: Build documentation when testing




commit 8fa8fbfe82c42ebf7c097ec8c564daf1da991bf5
Author: Sam Thursfield <sam thursfield codethink co uk>
Date:   Wed May 26 17:39:05 2021 +0200

    ci: Build documentation when testing
    
    Fixes https://gitlab.gnome.org/GNOME/tracker/-/issues/310
    
    We avoid building the docs on Alpine Linux as that doesn't work,
    probably due to missing dependencies. See an example in:
    https://gitlab.gnome.org/GNOME/tracker/-/jobs/1322163

 .gitlab-ci.yml | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2cb98c926..3813e3e37 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -177,6 +177,8 @@ build-alpine-container@x86_64:
   script:
     - meson . build -Db_lto=true -Db_coverage=true -Dsystemd_user_services=false -Dtests_tap_protocol=true 
--prefix /usr
     - ninja -C build
+    - |
+      if [ -z "$NO_DOCS" ]; then ninja -C build libtracker-sparql-3-doc ontology-3-doc; fi
   artifacts:
     expire_in: 1 day
     paths:
@@ -221,6 +223,8 @@ build-alpine-edge@x86_64:
     - .tracker.alpine:edge@x86_64
   needs:
     - build-alpine-container@x86_64
+  variables:
+    NO_DOCS: "true"
   <<: *build
 
 .test-template: &test


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