summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2022-08-26 08:43:34 -0400
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2022-09-15 20:11:47 +0000
commit339e5916c6cdfb959e2edb665a55213ed10cf156 (patch)
tree5b17e9059e3595085895d8d3068764ec19367c3a /.gitlab-ci.yml
parenta75f74d2cdea5345cc6cf7ded763b385d1727b49 (diff)
downloadgstreamer-339e5916c6cdfb959e2edb665a55213ed10cf156.tar.gz
Build documentation for rust plugins
- Update the docker image we use, starting using the standard one adding `gtk4-doc` as required by rust plugins - Update the plugins_doc_caches as required, some more plugins are built with the new image - Install ninja from pip as the version from F31 is too old - Avoid buildings all GSreamer plugins when building the doc as it takes time and resources for no good reason - Stop linking to `GInstanceInitFunc` as it is not present in latest GLib documentation, leading to warnings in hotdoc. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2954>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml28
1 files changed, 16 insertions, 12 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3884505969..574a3682ca 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -24,7 +24,7 @@ variables:
# If you are hacking on them or need a them to rebuild, its enough
# to change any part of the string of the image you want.
###
- FEDORA_TAG: '2022-09-02.0'
+ FEDORA_TAG: '2022-09-14.0'
INDENT_TAG: '2022-03-07.1'
WINDOWS_TAG: "2022-09-02.0"
@@ -658,25 +658,28 @@ valgrind ges:
# ---- Integration ----- #
.documentation:
- image: $FEDORA_DOCS_IMAGE
- extends:
- - '.build_ccache_vars'
+ extends: '.build fedora x86_64'
variables:
MESON_ARGS: *simple_build
- MESON_BUILDTYPE_ARGS: "-Ddoc=enabled -Drs=enabled"
+ MESON_BUILDTYPE_ARGS: "-Ddoc=enabled -Drs=enabled -Dgst-docs:fatal_warnings=true"
# Disable werror for the docs build, we don't need it
MESON_GST_WERROR: ''
CI_ARTIFACTS_URL: "${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/"
script:
- # FIXME: should rebuild the image with newer versions!
- - pip3 install --upgrade hotdoc
- - pip3 install --upgrade meson
- - *build
+ - export PATH=/usr/local/cargo/bin/:/usr/local/bin/:$PATH
+ - export RUSTUP_HOME='/usr/local/rustup'
+
+ - ci/scripts/handle-subprojects-cache.py subprojects/
+ - echo $MESON_ARGS
+ - meson build/ $MESON_ARGS
+ - ccache --show-stats
+
- ./gst-env.py ninja -C build/ plugins_doc_caches
# Ignore modifications to wrap files made by meson
- git checkout subprojects/*.wrap
- ./ci/scripts/check-documentation-diff.py
- - ./gst-env.py hotdoc run --conf-file=build/subprojects/gst-docs/GStreamer-doc.json --fatal-warnings
+
+ - ./gst-env.py ninja -C build subprojects/gst-docs/GStreamer-doc
- mv build/subprojects/gst-docs/GStreamer-doc/html documentation/
artifacts:
@@ -694,7 +697,8 @@ documentation:
stage: integrate
extends:
- '.documentation'
- needs: []
+ needs:
+ - "fedora amd64 docker"
rules:
- if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == "main"'
@@ -707,7 +711,7 @@ build documentation:
- '.documentation'
stage: build
needs:
- - "trigger"
+ - "fedora amd64 docker"
rules:
# Never run post merge, we have the `documentation` always running for that
- if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'