38 lines
1.1 KiB
Perl
38 lines
1.1 KiB
Perl
#!/usr/bin/env perl
|
|
|
|
use v5.30.0;
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use Test::Most tests => 1;
|
|
|
|
use Peace::Test::Mock::Model::Developer;
|
|
use Peace::Model::Application;
|
|
use Peace::Model::Release;
|
|
|
|
{
|
|
my $developer = Peace::Test::Mock::Model::Developer->new;
|
|
my $application = Peace::Model::Application->new(
|
|
name => 'OpenMG',
|
|
description => 'Stub',
|
|
url => 'https://gitea.sergiotarxz.freemyip.com/sergiotarxz/mangareader',
|
|
developer => $developer,
|
|
price => '99',
|
|
git_repo =>
|
|
'https://gitea.sergiotarxz.freemyip.com/sergiotarxz/mangareader',
|
|
flatpak_builder_file => 'me.sergiotarxz.openmg.json',
|
|
flatpak_repo => 'https://nightly.gnome.org/gnome-nightly.flatpakrepo',
|
|
verified => 1,
|
|
);
|
|
my $uuid = 'random-uuid';
|
|
my $release = Peace::Model::Release->new(
|
|
uuid => $uuid,
|
|
application => $application,
|
|
tag => 'main',
|
|
name => 'test',
|
|
);
|
|
my $result = $release->generate_build( arch => 'x86_64' );
|
|
ok $result->{success}, 'Build ends successfully.';
|
|
}
|