ci: Build and deploy documentations
A first step towards better documentations of Mutter and it internal libraries Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2427>
This commit is contained in:
parent
3776f9df8c
commit
d1a85c34cc
@ -9,6 +9,7 @@ stages:
|
|||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
- analyze
|
- analyze
|
||||||
|
- docs
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
@ -17,7 +18,7 @@ variables:
|
|||||||
.mutter.fedora:35@common:
|
.mutter.fedora:35@common:
|
||||||
variables:
|
variables:
|
||||||
FDO_DISTRIBUTION_VERSION: 35
|
FDO_DISTRIBUTION_VERSION: 35
|
||||||
BASE_TAG: '2022-03-05.0'
|
BASE_TAG: '2022-05-25.0'
|
||||||
FDO_DISTRIBUTION_PACKAGES:
|
FDO_DISTRIBUTION_PACKAGES:
|
||||||
asciidoc
|
asciidoc
|
||||||
clang
|
clang
|
||||||
@ -33,6 +34,7 @@ variables:
|
|||||||
xorg-x11-proto-devel
|
xorg-x11-proto-devel
|
||||||
qemu-system-x86-core
|
qemu-system-x86-core
|
||||||
busybox
|
busybox
|
||||||
|
gi-docgen
|
||||||
|
|
||||||
FDO_DISTRIBUTION_EXEC: |
|
FDO_DISTRIBUTION_EXEC: |
|
||||||
dnf install -y 'dnf-command(builddep)' &&
|
dnf install -y 'dnf-command(builddep)' &&
|
||||||
@ -485,3 +487,32 @@ dist-mutter-tarball:
|
|||||||
- build/meson-dist/$CI_PROJECT_NAME-$CI_COMMIT_TAG.tar.xz
|
- build/meson-dist/$CI_PROJECT_NAME-$CI_COMMIT_TAG.tar.xz
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG'
|
- if: '$CI_COMMIT_TAG'
|
||||||
|
|
||||||
|
reference:
|
||||||
|
extends:
|
||||||
|
- .fdo.distribution-image@fedora
|
||||||
|
- .mutter.fedora:35@x86_64
|
||||||
|
stage: docs
|
||||||
|
needs:
|
||||||
|
- job: build-fedora-container@x86_64
|
||||||
|
artifacts: false
|
||||||
|
script:
|
||||||
|
- meson . build --werror -Ddocs=true -Dtests=false
|
||||||
|
- ninja -C build
|
||||||
|
- mkdir references
|
||||||
|
- mv build/doc/reference/{cally/cally,clutter/clutter,cogl/cogl,cogl-pango/cogl-pango,meta/meta} references/
|
||||||
|
artifacts:
|
||||||
|
expire_in: 1 week
|
||||||
|
paths:
|
||||||
|
- references
|
||||||
|
|
||||||
|
pages:
|
||||||
|
stage: deploy
|
||||||
|
needs: ['reference']
|
||||||
|
script:
|
||||||
|
- mv references public/
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
rules:
|
||||||
|
- if: ($CI_DEFAULT_BRANCH == $CI_COMMIT_BRANCH && $CI_PROJECT_NAMESPACE == "GNOME")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user