mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 15:47:20 +02:00
add metainfo test
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
This commit is contained in:
parent
f95470c94a
commit
6453a123ab
@ -5,6 +5,7 @@ sudo: false
|
|||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
|
- appstream
|
||||||
- clang
|
- clang
|
||||||
- clang-format
|
- clang-format
|
||||||
- libinih-dev
|
- libinih-dev
|
||||||
@ -18,6 +19,7 @@ addons:
|
|||||||
script:
|
script:
|
||||||
- ./scripts/format-check.sh
|
- ./scripts/format-check.sh
|
||||||
- ./bootstrap.sh -Dwith-examples=true
|
- ./bootstrap.sh -Dwith-examples=true
|
||||||
|
- meson test -C build
|
||||||
- gamemoded -v
|
- gamemoded -v
|
||||||
- dbus-run-session -- gamemode-simulate-game
|
- dbus-run-session -- gamemode-simulate-game
|
||||||
- ./scripts/static-analyser-check.sh
|
- ./scripts/static-analyser-check.sh
|
||||||
|
@ -66,7 +66,22 @@ install_man(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Install metainfo
|
# Install metainfo
|
||||||
|
metainfo_file = files('io.github.feralinteractive.gamemode.metainfo.xml')
|
||||||
|
|
||||||
install_data(
|
install_data(
|
||||||
'io.github.feralinteractive.gamemode.metainfo.xml',
|
metainfo_file,
|
||||||
install_dir: join_paths(path_datadir, 'metainfo')
|
install_dir: join_paths(path_datadir, 'metainfo')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Validate metainfo
|
||||||
|
appstreamcli = find_program(
|
||||||
|
'appstreamcli',
|
||||||
|
required: false
|
||||||
|
)
|
||||||
|
if appstreamcli.found()
|
||||||
|
test(
|
||||||
|
'validate metainfo file',
|
||||||
|
appstreamcli,
|
||||||
|
args: ['validate', '--no-net', '--pedantic', metainfo_file],
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user