[tracker/wip/carlosg/test] ci: Build docs in a separate job




commit 34ce4dd74aac14a9c8241fbd4a10cd51fc502829
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Aug 29 13:18:27 2021 +0200

    ci: Build docs in a separate job
    
    Right now we make sure that docs are additionally built after building
    the Tracker repository itself for tests. This results in gcovr being
    terribly confused on coverage results as the ontology doc generator
    tool uses libtracker-sparql itself, so it tampers with the coverage
    results for the tests themselves.
    
    This was seen as a drastic decrease in test coverage, with some files
    sticking to the results obtained while generating the docs.
    
    Separate documentation building into a separate job so that it's
    orthogonal to tests and coverage.

 .gitlab-ci.yml | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fcc28018c..83f5cfb51 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -192,8 +192,6 @@ check-code-style:
   script:
     - meson . build -Ddocs=$([ -z "$NO_DOCS" ] && echo "true" || echo "false") -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 docs/reference/libtracker-sparql/Tracker-doc; fi
   artifacts:
     expire_in: 1 day
     paths:
@@ -380,6 +378,19 @@ static-scan:
       - _scan_build/meson-logs
   allow_failure: true
 
+docs:
+  extends:
+    - .fdo.distribution-image@fedora
+    - .tracker.fedora:34@x86_64
+  stage: website
+  script:
+    - ninja -C build docs/reference/libtracker-sparql/Tracker-doc
+  artifacts:
+    paths:
+      - build
+  needs:
+    - build-fedora@x86_64
+
 pages:
   extends:
     - .fdo.distribution-image@fedora


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