[devhelp/docgen: 3/3] ci: Add non-flatpak build
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp/docgen: 3/3] ci: Add non-flatpak build
- Date: Thu, 15 Jul 2021 13:49:02 +0000 (UTC)
commit a9942a0380ba79b068adce6c65b67b223f69f9c0
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 | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 76 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8bc964ab..64e23bb2 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,78 @@ nightly:
extends: .publish_nightly
dependencies: ['flatpak']
needs: ['flatpak']
+
+.build-default:
+ image: fedora:34
+ before_script:
+ - dnf install -y ${FEDORA_DEPS}
+ - pip3 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
+ 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=enabled"
+ 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]