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




commit f9d885d0cbcbb8896cafd3706f9701e6deb4856f
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 | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2cb98c926..87ff52280 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -177,6 +177,7 @@ 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
+    - [[ -z "$NO_DOCS" ]] && ninja -C build libtracker-sparql-3-doc ontology-3-doc
   artifacts:
     expire_in: 1 day
     paths:
@@ -221,6 +222,8 @@ build-alpine-edge@x86_64:
     - .tracker.alpine:edge@x86_64
   needs:
     - build-alpine-container@x86_64
+  variables:
+    NO_DOCS: 1
   <<: *build
 
 .test-template: &test


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