1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
stages:
- build
- docs
- deploy
variables:
BUNDLE: "org.gnome.Devhelp.flatpak"
flatpak:
stage: build
extends: .flatpak
variables:
MANIFEST_PATH: "build-aux/flatpak/org.gnome.Devhelp.Devel.json"
FLATPAK_MODULE: "devhelp"
APP_ID: "org.gnome.Devhelp.Devel"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
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:
chrpath
desktop-file-utils
gcc
gettext
git
glib2-devel
gobject-introspection-devel
gsettings-desktop-schemas-devel
gtk3-devel
itstool
libappstream-glib
ninja-build
python3
python3-pip
python3-wheel
redhat-rpm-config
webkit2gtk3-devel
MESON_VERSION: "0.57.2"
reference:
extends: .build-default
stage: docs
needs: []
variables:
FEDORA_DEPS:
chrpath
desktop-file-utils
gcc
gettext
git
glib2-devel
gobject-introspection-devel
graphviz
gsettings-desktop-schemas-devel
gtk3-devel
itstool
libappstream-glib
ninja-build
python3
python3-jinja2
python3-markdown
python3-markupsafe
python3-pip
python3-pygments
python3-toml
python3-typogrify
python3-wheel
redhat-rpm-config
webkit2gtk3-devel
MESON_VERSION: "0.57.2"
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:
- main
|