2020-01-13 10:35:34 +00:00
|
|
|
include:
|
|
|
|
- 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-definitions.yml'
|
2022-08-30 12:08:26 +00:00
|
|
|
- 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
|
2024-09-01 06:32:58 +00:00
|
|
|
- project: 'guidog/meta-phosh'
|
|
|
|
ref: '2aeb9bfe2b230ca3aeda8275e42c95f94f6723ca'
|
|
|
|
file: '/ci/phosh-common-jobs.yml'
|
2020-01-13 10:35:34 +00:00
|
|
|
|
2020-01-13 10:33:42 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
2020-01-13 10:35:34 +00:00
|
|
|
- package
|
|
|
|
- test-package
|
2022-01-23 19:38:45 +00:00
|
|
|
- deploy
|
2020-01-13 10:33:42 +00:00
|
|
|
|
2024-09-01 07:04:37 +00:00
|
|
|
workflow:
|
|
|
|
rules:
|
|
|
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
|
|
|
# Don't trigger a branch pipeline if there is an open MR
|
|
|
|
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
|
|
|
|
when: never
|
|
|
|
- if: $CI_COMMIT_TAG
|
|
|
|
- if: $CI_COMMIT_BRANCH
|
|
|
|
|
2021-07-12 08:30:14 +00:00
|
|
|
variables:
|
2024-08-30 12:51:52 +00:00
|
|
|
DEBIAN_IMAGE: $CI_REGISTRY/gnome/calls/debian:v0.0.2024-08-30
|
2021-10-01 16:34:51 +00:00
|
|
|
GIT_SUBMODULE_STRATEGY: normal
|
2021-07-12 08:30:14 +00:00
|
|
|
|
2018-07-27 08:06:04 +00:00
|
|
|
build:native:
|
|
|
|
stage: build
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- _build
|
2020-12-04 17:39:53 +00:00
|
|
|
variables:
|
2021-10-06 11:42:05 +00:00
|
|
|
COMMON_BUILD_OPTS: -Db_coverage=true
|
2020-12-04 17:39:53 +00:00
|
|
|
BUILD_OPTS: -Dgtk_doc=true ${COMMON_BUILD_OPTS}
|
2021-01-22 12:12:01 +00:00
|
|
|
WANT_BUILD_DEPS: "true"
|
2020-07-03 08:20:39 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $PKG_ONLY == "1"
|
2021-12-21 11:35:24 +00:00
|
|
|
image: "${DEBIAN_IMAGE}"
|
2021-07-12 08:30:14 +00:00
|
|
|
tags: []
|
2021-01-22 12:12:01 +00:00
|
|
|
script:
|
|
|
|
- 'echo "Build opts: ${BUILD_OPTS}"'
|
|
|
|
- meson ${BUILD_OPTS} . _build
|
|
|
|
- ninja -C _build
|
2018-07-27 08:06:04 +00:00
|
|
|
|
2023-05-01 08:26:37 +00:00
|
|
|
build:tarball:
|
|
|
|
stage: build
|
|
|
|
image: "${DEBIAN_IMAGE}"
|
|
|
|
tags: []
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- _build/meson-dist
|
|
|
|
script:
|
|
|
|
- meson setup . _build
|
|
|
|
- xvfb-run -s -noreset meson dist -C _build
|
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
|
2018-07-27 08:06:04 +00:00
|
|
|
test:native:
|
2021-01-22 12:12:01 +00:00
|
|
|
extends: build:native
|
2018-07-27 08:06:04 +00:00
|
|
|
stage: test
|
|
|
|
dependencies:
|
|
|
|
- build:native
|
|
|
|
script:
|
|
|
|
- export LC_ALL=C.UTF-8
|
2021-04-05 01:35:48 +00:00
|
|
|
- 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
|
2021-11-24 13:07:37 +00:00
|
|
|
coverage: '/^lines:\s+([\d.]+\%)\s+/'
|
2018-07-27 08:06:04 +00:00
|
|
|
|
2020-12-04 17:39:53 +00:00
|
|
|
build-gtkdoc:
|
2021-01-22 12:12:01 +00:00
|
|
|
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
|
|
|
|
|
2020-11-09 09:37:12 +00:00
|
|
|
check-po:
|
|
|
|
stage: test
|
2024-09-01 06:32:58 +00:00
|
|
|
extends: .phosh-check-po
|
2020-11-09 09:37:12 +00:00
|
|
|
dependencies:
|
|
|
|
- build:native
|
2021-06-22 04:26:57 +00:00
|
|
|
|
2024-09-01 06:36:30 +00:00
|
|
|
check-consistency:
|
|
|
|
stage: test
|
|
|
|
extends: .phosh-check-consistency
|
|
|
|
|
2024-01-13 11:03:51 +00:00
|
|
|
package:deb-debian-trixie:arm64:
|
2021-07-12 08:30:14 +00:00
|
|
|
variables:
|
2024-01-13 11:03:51 +00:00
|
|
|
L5_DOCKER_IMAGE: debian:trixie
|
2021-08-25 07:36:56 +00:00
|
|
|
DEB_BUILD_PROFILES: nodoc
|
2021-07-12 08:30:14 +00:00
|
|
|
tags:
|
|
|
|
- aarch64
|
|
|
|
extends: .l5-build-debian-package
|
|
|
|
|
2022-09-21 12:09:20 +00:00
|
|
|
.vars-devel:
|
2021-06-22 04:26:57 +00:00
|
|
|
variables:
|
2021-07-10 02:34:23 +00:00
|
|
|
MANIFEST_PATH: "org.gnome.Calls.json"
|
2021-06-22 04:26:57 +00:00
|
|
|
FLATPAK_MODULE: "calls"
|
2021-07-10 02:34:23 +00:00
|
|
|
APP_ID: "org.gnome.Calls"
|
2022-09-21 12:09:20 +00:00
|
|
|
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
|
2021-06-22 04:26:57 +00:00
|
|
|
BUNDLE: "calls.flatpak"
|
2022-09-21 12:09:20 +00:00
|
|
|
CONFIG_OPTS: >-
|
|
|
|
-Dmanpages=false
|
2022-11-19 15:56:49 +00:00
|
|
|
TEST_RUN_ARGS: >-
|
|
|
|
"calls:Validate desktop file"
|
|
|
|
"calls:Validate daemon desktop file"
|
|
|
|
calls:util
|
|
|
|
calls:settings
|
|
|
|
calls:origin
|
|
|
|
calls:provider
|
|
|
|
calls:call
|
|
|
|
calls:plugins
|
|
|
|
calls:contacts
|
|
|
|
calls:ui-call
|
|
|
|
calls:manager
|
|
|
|
calls:ringer
|
|
|
|
calls:media
|
|
|
|
calls:srtp
|
|
|
|
calls:sdp-crypto
|
|
|
|
# Disable test because it fails in flatpak
|
|
|
|
#calls:sip
|
2022-09-21 12:09:20 +00:00
|
|
|
|
|
|
|
# Build Flatpak for x86_64
|
|
|
|
flatpak@x86_64:
|
2023-01-04 11:49:10 +00:00
|
|
|
stage: package
|
2022-09-21 12:09:20 +00:00
|
|
|
extends: ['.flatpak@x86_64', '.vars-devel']
|
2023-05-09 07:16:11 +00:00
|
|
|
allow_failure: true
|
2023-01-22 05:36:24 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $PKG_ONLY == "1"
|
2022-09-21 12:09:20 +00:00
|
|
|
|
|
|
|
# Build Flatpak for aarch64
|
|
|
|
flatpak@aarch64:
|
2023-01-04 11:49:10 +00:00
|
|
|
stage: package
|
2022-09-21 12:09:20 +00:00
|
|
|
extends: ['.flatpak@aarch64', '.vars-devel']
|
2023-05-09 07:16:11 +00:00
|
|
|
allow_failure: true
|
2023-01-22 05:36:24 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $PKG_ONLY == "1"
|
2022-09-21 12:09:20 +00:00
|
|
|
|
|
|
|
# Publish Flatpak for x86_64
|
|
|
|
nightly@x86_64:
|
|
|
|
extends: '.publish_nightly'
|
2023-05-10 18:37:41 +00:00
|
|
|
allow_failure: true
|
2022-09-21 12:09:20 +00:00
|
|
|
needs: ['flatpak@x86_64']
|
|
|
|
|
|
|
|
# Publish Flatpak for aarch64
|
|
|
|
nightly@aarch64:
|
|
|
|
extends: '.publish_nightly'
|
2023-05-10 18:37:41 +00:00
|
|
|
allow_failure: true
|
2022-09-21 12:09:20 +00:00
|
|
|
needs: ['flatpak@aarch64']
|
2022-01-23 19:38:45 +00:00
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
needs:
|
|
|
|
- build-gtkdoc
|
|
|
|
script:
|
|
|
|
mv _reference/ public/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
only:
|
2022-09-03 14:33:12 +00:00
|
|
|
- main
|