[glib: 4/9] doc: Run gtkdoc-check with unit tests



commit 09d995286b498b5452dc95f3fef4bf3465db0b24
Author: Xavier Claessens <xavier claessens collabora com>
Date:   Tue Jul 9 15:51:32 2019 -0400

    doc: Run gtkdoc-check with unit tests
    
    This has the side effect of always rebuilding the doc at each build when
    gtk_doc option is enabled (not by default). Most importantly, this will
    enable doc check on our CI.

 .gitlab-ci.yml                     | 1 +
 docs/reference/gio/meson.build     | 3 ++-
 docs/reference/glib/meson.build    | 3 ++-
 docs/reference/gobject/meson.build | 3 ++-
 4 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 50803ee09..b0e6c93bd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -53,6 +53,7 @@ fedora-x86_64:
             -Ddtrace=true
             -Dfam=true
             -Dinstalled_tests=true
+            -Dgtk_doc=true
             _build
     - ninja -C _build
     - mkdir -p _coverage
diff --git a/docs/reference/gio/meson.build b/docs/reference/gio/meson.build
index c8b44a0aa..b25d11b41 100644
--- a/docs/reference/gio/meson.build
+++ b/docs/reference/gio/meson.build
@@ -209,7 +209,8 @@ if get_option('gtk_doc')
       '--extra-dir=' + join_paths('gio', '..', 'glib', 'html'),
       '--extra-dir=' + join_paths('gio', '..', 'gobject', 'html'),
     ],
-    install: true
+    install: true,
+    check: true,
   )
 endif
 
diff --git a/docs/reference/glib/meson.build b/docs/reference/glib/meson.build
index bba7649f0..62d95f78d 100644
--- a/docs/reference/glib/meson.build
+++ b/docs/reference/glib/meson.build
@@ -88,7 +88,8 @@ if get_option('gtk_doc')
                fixxref_args: [
                  '--html-dir=' + docpath,
                ],
-               install: true)
+               install: true,
+               check: true)
 endif
 
 if get_option('man')
diff --git a/docs/reference/gobject/meson.build b/docs/reference/gobject/meson.build
index 096c9036f..a9a654354 100644
--- a/docs/reference/gobject/meson.build
+++ b/docs/reference/gobject/meson.build
@@ -50,7 +50,8 @@ if get_option('gtk_doc')
       '--html-dir=' + docpath,
       '--extra-dir=' + join_paths('gobject', '..', 'glib', 'html'),
     ],
-    install: true
+    install: true,
+    check: true,
   )
 endif
 


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