[devhelp/docgen] ci: Add non-flatpak build
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp/docgen] ci: Add non-flatpak build
- Date: Thu, 15 Jul 2021 13:54:12 +0000 (UTC)
commit 13c30207fead59ee6ccd5423d5c5ad7570b4ebaa
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Jul 15 14:48:25 2021 +0100
ci: Add non-flatpak build
And publish our API reference on our Pages section.
.gitlab-ci.yml | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 78 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8bc964ab..9ec69680 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,7 @@ include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_
stages:
- build
+ - docs
- deploy
variables:
@@ -21,3 +22,80 @@ nightly:
extends: .publish_nightly
dependencies: ['flatpak']
needs: ['flatpak']
+
+.build-default:
+ image: fedora:34
+ before_script:
+ - dnf install -y ${FEDORA_DEPS}
+ - pip install --user meson==${MESON_VERSION}
+ - export PATH="$PATH:$HOME/.local/bin"
+ script:
+ - meson setup ${MESON_EXTRA_FLAGS} --prefix /usr _build .
+ - meson compile -C _build
+ - meson test -C _build
+ artifacts:
+ when: always
+ name: "devhelp-${CI_COMMIT_REF_NAME}"
+ paths:
+ - "${CI_PROJECT_DIR}/_build/meson-logs"
+
+fedora_x86_64:
+ extends: .build-default
+ stage: build
+ needs: []
+ variables:
+ FEDORA_DEPS:
+ gcc
+ gettext
+ git
+ glib2-devel
+ gobject-introspection-devel
+ ninja-build
+ python3
+ python3-pip
+ python3-wheel
+ redhat-rpm-config
+ MESON_VERSION: "0.55.3"
+
+reference:
+ extends: .build-default
+ stage: docs
+ needs: []
+ variables:
+ FEDORA_DEPS:
+ gcc
+ gettext
+ git
+ glib2-devel
+ gobject-introspection-devel
+ graphviz
+ ninja-build
+ python3
+ python3-jinja2
+ python3-markdown
+ python3-markupsafe
+ python3-pip
+ python3-pygments
+ python3-toml
+ python3-typogrify
+ python3-wheel
+ redhat-rpm-config
+ MESON_VERSION: "0.55.3"
+ MESON_EXTRA_FLAGS: "-Dgtk_doc=true"
+ after_script:
+ - mkdir _reference
+ - mv _build/docs/reference/devhelp-3/ _reference/
+ artifacts:
+ paths:
+ - _reference
+
+pages:
+ stage: deploy
+ needs: ['reference']
+ script:
+ - mv _reference public
+ artifacts:
+ paths:
+ - public
+ only:
+ - master
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]