mirror of
https://gitlab.gnome.org/World/Authenticator
synced 2024-07-02 15:49:01 +00:00
meson: add cargo tests
this will make our tests run on the CI for free without extra setup
This commit is contained in:
parent
5181f5c2d1
commit
b79ede5f73
|
@ -10,7 +10,7 @@ dependency('gdk-pixbuf-2.0')
|
|||
dependency('gtk4', version: '>= 4.0.0')
|
||||
dependency('libadwaita-1', version: '>=1.0.0')
|
||||
|
||||
cargo = find_program('cargo', required: false)
|
||||
cargo = find_program('cargo', required: true)
|
||||
glib_compile_schemas = find_program('glib-compile-schemas', required: true)
|
||||
glib_compile_resources = find_program('glib-compile-resources', required: true)
|
||||
|
||||
|
|
|
@ -36,8 +36,6 @@ run_command(
|
|||
check: true
|
||||
)
|
||||
|
||||
|
||||
|
||||
sources = files(
|
||||
'backup/andotp.rs',
|
||||
'backup/bitwarden.rs',
|
||||
|
@ -103,3 +101,9 @@ cargo_release = custom_target(
|
|||
meson.project_name(),
|
||||
]
|
||||
)
|
||||
|
||||
test (
|
||||
'Cargo tests',
|
||||
cargo,
|
||||
args: ['test']
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user