-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathBuild.PL
103 lines (65 loc) · 2.49 KB
/
Build.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
use warnings;
use strict;
use lib 'inc';
use Local::Module::Build;
my $builder = Local::Module::Build->new(
module_name => 'NGCP::Panel',
license => 'perl',
dist_version_from => 'lib/NGCP/Panel.pm',
dist_abstract => 'Sipwise Configuration Panel',
tap_harness_args => {
timer => 1,
formatter_class => 'TAP::Formatter::JUnit',
merge => 1,
},
add_to_cleanup => [ 'NGCP-Panel-*' ],
);
$builder->create_build_script;
__END__
=encoding UTF-8
=head1 NAME
Build.PL - NGCP-Panel build system including test fixtures
=head1 DESCRIPTION
NGCP-Panel
A completely overhauled provisioning interface for the NGCP system.
=head1 SYNOPSIS
perl ./Build
./Build test --wd-server=127.0.0.1:5555
./Build testcover
./Build test_api
./Build test_api --schema-base-dir=path/to/schema --server=https://203.0.113.42:1443
=head2 Options
--no-junit don't output junit but normal TAP, for manual testing
--schema-base-dir directory of NGCP::Schema if its not yet installed
--server URI for socket test server
--wd-server HOST:PORT of an external webdriver to connect to
--help brief help message
--man full documentation
=head1 OPTIONS
=head2 C<--schema-base-dir>
If the NGCP::Schema is not installed to a known path to perl, this
option can specify the base directory of its development location.
It will then be included via blib, so we have access to its lib and share.
=head2 C<--server>
URI for the HTTP::Server::PSGI socket server run for testing,
default C<http://localhost:5000>
=head2 C<--wd-server>
Host:Port of the webdriver to which the tests should connect.
Default is set by Test::WebDriver to localhost:4444
=head2 C<--help>
Print a brief help message and exits.
=head2 C<--man>
Prints the manual page and exits.
=head1 I18N
1. Update strings from database
script/ngcp_panel_dump_db_strings.pl
2. regenerate messages.pot (use -v for verbose output)
xgettext.pl --output=lib/NGCP/Panel/I18N/messages.pot --directory=lib/ --directory=share/templates/ --directory=share/layout -P perl=tt,pm
3. Update or create $LANG.po files
msgmerge --update $LANG.po messages.pot
In case your language did not exist already:
msginit --input=lib/NGCP/Panel/I18N/messages.pot --output=lib/NGCP/Panel/I18N/$LANG.po --locale=$LANG
=head1 AUTHOR
Sipwise Development Team <support@sipwise.com>.
=head1 LICENSE
GPL-3+, Sipwise GmbH, Austria.