mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-09 13:25:35 +00:00
ci: Use appstreamcli instead of appstream-util
(cherry picked from commit db2bb818b6
)
This commit is contained in:
parent
53640e42be
commit
ce8d4afd75
2 changed files with 8 additions and 8 deletions
|
@ -28,7 +28,7 @@ build:native:
|
||||||
- export DEBIAN_FRONTEND=noninteractive
|
- export DEBIAN_FRONTEND=noninteractive
|
||||||
- apt-get -y update
|
- apt-get -y update
|
||||||
- apt-get -y install eatmydata
|
- 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 .'
|
- '[ "${WANT_BUILD_DEPS}" != "true" ] || eatmydata apt-get -y build-dep .'
|
||||||
- ulimit -c unlimited
|
- ulimit -c unlimited
|
||||||
script:
|
script:
|
||||||
|
@ -75,7 +75,7 @@ check-po:
|
||||||
- cd po/
|
- cd po/
|
||||||
- intltool-update -m 2>&1 | grep -qs '/.*\.c' && { intltool-update -m; exit 1; } || exit 0
|
- intltool-update -m 2>&1 | grep -qs '/.*\.c' && { intltool-update -m; exit 1; } || exit 0
|
||||||
|
|
||||||
validate-metadata-strict:
|
validate-metadata-pedantic:
|
||||||
stage: test
|
stage: test
|
||||||
image: debian:bookworm
|
image: debian:bookworm
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
@ -84,9 +84,9 @@ validate-metadata-strict:
|
||||||
- export DEBIAN_FRONTEND=noninteractive
|
- export DEBIAN_FRONTEND=noninteractive
|
||||||
- apt-get -y update
|
- apt-get -y update
|
||||||
- apt-get -y install eatmydata ca-certificates
|
- apt-get -y install eatmydata ca-certificates
|
||||||
- eatmydata apt-get -y install appstream-util
|
- eatmydata apt-get -y install appstream
|
||||||
script:
|
script:
|
||||||
- appstream-util validate-strict data/org.gnome.Calls.metainfo.xml
|
- appstreamcli validate --pedantic data/org.gnome.Calls.metainfo.xml
|
||||||
|
|
||||||
package-debian-bookworm:
|
package-debian-bookworm:
|
||||||
tags: []
|
tags: []
|
||||||
|
|
|
@ -37,10 +37,10 @@ install_data('org.gnome.Calls.metainfo.xml',
|
||||||
install_dir: join_paths(datadir, 'metainfo'),
|
install_dir: join_paths(datadir, 'metainfo'),
|
||||||
)
|
)
|
||||||
|
|
||||||
appstream_util = find_program('appstream-util', required: false)
|
appstreamcli = find_program('appstreamcli', required: false)
|
||||||
if appstream_util.found()
|
if appstreamcli.found()
|
||||||
test('Validate appstream file', appstream_util,
|
test('Validate metainfo file', appstreamcli,
|
||||||
args: ['validate-relax',
|
args: ['validate',
|
||||||
join_paths(meson.current_source_dir(),
|
join_paths(meson.current_source_dir(),
|
||||||
'org.gnome.Calls.metainfo.xml')
|
'org.gnome.Calls.metainfo.xml')
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in a new issue