1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-28 14:49:30 +00:00

ci: Use appstreamcli instead of appstream-util

(cherry picked from commit db2bb818b6)
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-10-19 18:40:32 +02:00
parent 53640e42be
commit ce8d4afd75
2 changed files with 8 additions and 8 deletions

View file

@ -28,7 +28,7 @@ build:native:
- export DEBIAN_FRONTEND=noninteractive
- apt-get -y update
- apt-get -y install eatmydata
- eatmydata apt-get -y install lcov ca-certificates appstream-util
- eatmydata apt-get -y install lcov ca-certificates appstream
- '[ "${WANT_BUILD_DEPS}" != "true" ] || eatmydata apt-get -y build-dep .'
- ulimit -c unlimited
script:
@ -75,7 +75,7 @@ check-po:
- cd po/
- intltool-update -m 2>&1 | grep -qs '/.*\.c' && { intltool-update -m; exit 1; } || exit 0
validate-metadata-strict:
validate-metadata-pedantic:
stage: test
image: debian:bookworm
allow_failure: true
@ -84,9 +84,9 @@ validate-metadata-strict:
- export DEBIAN_FRONTEND=noninteractive
- apt-get -y update
- apt-get -y install eatmydata ca-certificates
- eatmydata apt-get -y install appstream-util
- eatmydata apt-get -y install appstream
script:
- appstream-util validate-strict data/org.gnome.Calls.metainfo.xml
- appstreamcli validate --pedantic data/org.gnome.Calls.metainfo.xml
package-debian-bookworm:
tags: []

View file

@ -37,10 +37,10 @@ install_data('org.gnome.Calls.metainfo.xml',
install_dir: join_paths(datadir, 'metainfo'),
)
appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
test('Validate appstream file', appstream_util,
args: ['validate-relax',
appstreamcli = find_program('appstreamcli', required: false)
if appstreamcli.found()
test('Validate metainfo file', appstreamcli,
args: ['validate',
join_paths(meson.current_source_dir(),
'org.gnome.Calls.metainfo.xml')
])