1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-16 05:15:36 +00:00
Purism-Calls/.gitlab-ci.yml

120 lines
2.6 KiB
YAML
Raw Normal View History

include:
- 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-definitions.yml'
- 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
stages:
- build
- test
- package
- test-package
- deploy
2021-07-12 08:30:14 +00:00
variables:
L5_DOCKER_IMAGE: debian:bookworm
DEBIAN_IMAGE: $CI_REGISTRY/gnome/calls/debian:v0.0.20221117
GIT_SUBMODULE_STRATEGY: normal
2021-07-12 08:30:14 +00:00
build:native:
stage: build
artifacts:
paths:
- _build
2020-12-04 17:39:53 +00:00
variables:
COMMON_BUILD_OPTS: -Db_coverage=true
2020-12-04 17:39:53 +00:00
BUILD_OPTS: -Dgtk_doc=true ${COMMON_BUILD_OPTS}
WANT_BUILD_DEPS: "true"
except:
variables:
- $PKG_ONLY == "1"
image: "${DEBIAN_IMAGE}"
2021-07-12 08:30:14 +00:00
tags: []
script:
- 'echo "Build opts: ${BUILD_OPTS}"'
- meson ${BUILD_OPTS} . _build
- ninja -C _build
test:native:
extends: build:native
stage: test
dependencies:
- build:native
script:
- export LC_ALL=C.UTF-8
- xvfb-run -s -noreset ninja -C _build test
2021-04-27 02:46:34 +00:00
- cp _build/src/libcalls-vala.a.p/*.c _build
- ninja -C _build coverage
coverage: '/^lines:\s+([\d.]+\%)\s+/'
2020-12-04 17:39:53 +00:00
build-gtkdoc:
extends: build:native
2020-12-04 17:39:53 +00:00
stage: test
dependencies:
- build:native
script:
- ninja -C _build calls-doc
- mv _build/doc/html/ _reference/
artifacts:
paths:
- _reference
check-po:
extends: build:native
stage: test
dependencies:
- build:native
script:
# barf on untranslated C or UI files. Seems intltool
# can't be told to exit with non-zero exit status
# in this case
- cd po/
- intltool-update -m 2>&1 | grep -qs '/.*\.\(c|ui\)' && { intltool-update -m; exit 1; } || exit 0
2021-06-22 04:26:57 +00:00
package:deb-pureos-byzantium:arm64:
2021-07-12 08:30:14 +00:00
variables:
L5_DOCKER_IMAGE: pureos/byzantium
DEB_BUILD_PROFILES: nodoc
2021-07-12 08:30:14 +00:00
tags:
- aarch64
extends: .l5-build-debian-package
.vars-devel:
2021-06-22 04:26:57 +00:00
variables:
MANIFEST_PATH: "org.gnome.Calls.json"
2021-06-22 04:26:57 +00:00
FLATPAK_MODULE: "calls"
APP_ID: "org.gnome.Calls"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
2021-06-22 04:26:57 +00:00
BUNDLE: "calls.flatpak"
CONFIG_OPTS: >-
-Dmanpages=false
# Build Flatpak for x86_64
flatpak@x86_64:
extends: ['.flatpak@x86_64', '.vars-devel']
# Build Flatpak for aarch64
flatpak@aarch64:
extends: ['.flatpak@aarch64', '.vars-devel']
# Publish Flatpak for x86_64
nightly@x86_64:
extends: '.publish_nightly'
needs: ['flatpak@x86_64']
# Publish Flatpak for aarch64
nightly@aarch64:
extends: '.publish_nightly'
needs: ['flatpak@aarch64']
pages:
stage: deploy
needs:
- build-gtkdoc
script:
mv _reference/ public/
artifacts:
paths:
- public
only:
- main