-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathBuildFarmWeb.pl.skel
More file actions
134 lines (105 loc) · 3.56 KB
/
Copy pathBuildFarmWeb.pl.skel
File metadata and controls
134 lines (105 loc) · 3.56 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
=comment
Copyright (c) 2003-2022, Andrew Dunstan
See accompanying License file for license details
=cut
## no critic (Modules::RequireExplicitPackage)
use strict;
use warnings;
use vars qw(
$dbhost $dbname $dbuser $dbpass $dbport $dbport_bin
$notifyapp
$all_stat $fail_stat $change_stat $green_stat
$captcha_invis_pubkey $captcha_invis_privkey
$template_dir
$buildlogs_dir
$default_host
$local_git_clone
$status_from $register_from $reminders_from $alerts_from
$skip_mail
$skip_rss
$skip_captcha
$ignore_branches_of_interest
$reject_unknown_git_head_ref
$envtestenabled
$email_only
$livery %liveries
);
# if on enable envtest.pl to produce output, should normally be off
$envtestenabled = 0;
# if skip_mail is true then $default_host doesn't matter
# same for all the email addresses
$skip_mail = 0;
# if skip_captcha is true the captcha settings doin't matter
$skip_captcha = 0;
# keep RSS by default
$skip_rss = 0;
# Site liveries: each bundles the visual identity, brand name and public
# host. $livery below names the active one; change that single value to
# re-skin the whole site (web pages, notification emails and the RSS feed).
# status_host is the public base URL used for generated links and the feed.
%liveries = (
build => {
brand => 'PostgreSQL BuildFarm',
noun => 'build farm',
class => 'livery-build',
banner => '/inc/pgbuildfarm-banner.png',
icon => '/elephant-icon.png',
status_host => 'https://buildfarm.postgresql.org',
mail_tag => 'PGBuildfarm',
mail_from => 'PG Build Farm',
rss_title => 'PostgreSQL Build Farm',
encrypt_secrets => 0,
},
security => {
brand => 'PostgreSQL SecurityFarm',
noun => 'security farm',
class => 'livery-security',
banner => '/inc/pgsecurityfarm-banner.png',
icon => '/inc/pgsecurityfarm-icon.png',
status_host => 'https://sec-buildfarm.postgresql.org',
mail_tag => 'PGSecurityfarm',
mail_from => 'PG Security Farm',
rss_title => 'PostgreSQL Security Farm',
encrypt_secrets => 1,
},
);
$livery = 'build';
my $base_install_dir = '/path/to/install/website';
$template_dir = "$base_install_dir/templates";
$buildlogs_dir = "$base_install_dir/buildlogs";
$default_host = 'foohost.pgbuildfarm.org';
$dbhost = undef; # undef = unix socket
$dbname = "mydb";
$dbuser = "myuser";
$dbpass = "mypas";
$dbport = undef; # undef = default
$dbport_bin = undef;
# addresses to email about new applications
$notifyapp = [qw( someone@somewhere.com )];
# from addresses for various mailings
$register_from = undef;
$alerts_from = undef;
$status_from = undef;
$reminders_from = undef;
# addresses for mailing lists for status notifications
$all_stat = ['foo-status-all@somewhere.org'];
$fail_stat = ['foo-status-fail@somewhere.org'];
$change_stat = ['foo-status-chngs@somewhere.org'];
$green_stat = ['foo-status-green@somewhere.org'];
# minimum acceptable script versions
{
no warnings qw(once);
$main::min_script_version = "99.99";
$main::min_web_script_version = "99.99";
}
# captcha keys for site
$captcha_invis_pubkey = 'foo';
$captcha_invis_privkey = 'bar';
$local_git_clone = '/path/to/bare/git/repo';
$ignore_branches_of_interest = undef; # or some true value to ignore it
# if set to a true value, reject any build whose reported git head ref is
# not present in $local_git_clone (e.g. built from an unpublished or
# rewritten commit). Off by default.
$reject_unknown_git_head_ref = undef;
$email_only = undef;
1;