Turn off some more compier warnings, in default CFLAGS
[buildfarm-client.git] / build-farm.conf.template
1
2 # -*-perl-*- hey - emacs - this is a perl file
3
4 =comment
5
6 Copyright (c) 2003-2010, Andrew Dunstan
7
8 See accompanying License file for license details
9
10 =cut 
11
12 package EximBuild;
13
14 use 5.010;
15 use strict;
16 use warnings;
17
18 my $branch = $::branch;
19
20 # This could be changed to use the standard layout but in a different place
21 my $basedir = "$ENV{HOME}";
22
23 # This template assumes that the user running the buildfarm process is "farm"
24 my $farm_user_name = getpwuid($<) // die "$0: can't get user name from uid $<: $!\n";
25
26 our %conf =(
27     scm => 'git',
28     # default is github mirror of Exim
29     # Only used for the initial clone (?)
30     scmrepo => 'https://github.com/Exim/exim.git',
31     # webref for diffs on server - use default for community
32     scm_url => undef,
33     # for --reference on git repo
34     # git_reference => undef,
35     # or gmake if required. can include path if necessary.
36     make => 'make',
37     # 1 = any make will do, 0 = require GNU (default)
38     non_gnu_make => 0,
39     # >1 for parallel "make" and "make check" steps
40     make_jobs => undef,
41     # default is "tar -z -cf runlogs.tgz *.log"
42     # replacement must have the same effect
43     # must be absolute, can be either Unix or Windows style for MSVC
44     tar_log_cmd => undef,
45     # If running multiple animals, an explicit common directory for
46     # the lockfile so that runs do not conflict. Otherwise, leave unset.
47     global_lock_dir => $basedir,
48     # this directory must exist before anything will work
49     build_root => "$basedir/buildfarm",
50     # set true to do vpath builds
51     use_vpath => undef,
52
53     keep_error_builds => 0,
54     # Linux style, use "*.core" for BSD
55     core_file_glob => 'core*',
56
57     # Note about HTTPS: HTTPS support is experimental. For a
58     # limited time you may try to use HTTP, in case HTTPS doesn't
59     # work for you.
60
61     # build process will connect to this URL to upload results
62     target => 'https://buildfarm.exim.org/cgi-bin/eximstatus.pl',
63     # update_personality uses this when you want to update your
64     # machine's info (OS, version, compiler, version)
65     upgrade_target => 'https://buildfarm.exim.org/cgi-bin/upgrade.pl',
66
67     # Your host alias and password in the BuildFarm
68     animal => 'alias_assigned_by_build_team',
69     secret => 'secret_assigned_by_build_team',
70
71     # allow automatic updates of the buildfarm client code.
72     # Leave it *unset* to get the default behaviour, set it
73     # to some false value to disable automatic updates or set it
74     # to the name of the remote Git repo you follow for your
75     # buildfarm-client code.
76     #auto_update => 'origin',
77
78     # if force_every is a scalar it will be used on all branches, like this
79     # for legacy reasons:
80     # force_every => 336 , # max hours between builds, undef or 0 = unforced
81     # we now prefer it to be a hash with branch names as the keys, like this
82     #
83     # this setting should be kept conservatively high, or not used at all  -
84     # for the most part it's best to let the script decide if something
85     # has changed that requires a new run for the branch.
86     #
87     # an entry with a name of 'default' matches any branch not named
88     force_every => {
89         HEAD => 24*7,
90         # default => 168,
91     },
92
93     # alerts are triggered if the server doesn't see a build on a branch after
94     # this many hours, and then sent out every so often,
95     alerts => {
96         #HEAD          => { alert_after => 72,  alert_every => 24 },
97     },
98
99     print_success => undef,
100
101     # include / exclude pattern for files whose trigger a build
102     # if both are specified then they are both applied as filters
103     # undef means don't ignore anything.
104     # exclude qr[/(doc|po)/] to ignore changes to docs and po files (recommended)
105     # undef means null filter.
106     trigger_exclude => qr[/(doc|po)/],
107     trigger_include => undef,
108
109     # settings for mail notices - default to notifying nobody
110     # (putting the operator of the animal is a good idea)
111     # these lists contain addresses to be notified
112     # must be complete email addresses, as the email is sent from the server
113     # put single-quote (') around the address string
114     mail_events =>{
115         all => [], # unconditional
116         fail => [], # if this build fails
117         change => [], # if this build causes a state change
118         green => [], # if this build causes a state change to/from OK
119     },
120
121     # env settings to apply within build/report process
122     # these settings will be seen by all the processes, including the
123     # configure process.
124     build_env =>{
125         # use a dedicated cache for the build farm. this should give us
126         # very high hit rates and slightly faster cache searching.
127         CCACHE_DIR => "$basedir/buildfarm/ccache/$branch",
128
129         ### set this if you need a proxy setting for the
130         # outbound web transaction that reports the results
131         # BF_PROXY => 'http://my.proxy.server:portnum/',
132     },
133
134     # Environment settings on the make commandline.
135     # These cause full compile output and don't strip the binary.
136     make_args => q/FULLECHO='' STRIP_COMMAND=''/,
137
138     # Settings to add to Local/Makefile. These will set or override
139     # previous definitions of variables.  Example:
140     # LDFLAGS => '-Wall' will create LDFLAGS = '-Wall'
141     makefile_set =>{
142         # uncomment to use ccache
143         #CC => 'ccache gcc',
144         HAVE_IPV6 => 'yes',
145         # Required for some tests to pass
146         AUTH_PLAINTEXT => 'yes',
147         SUPPORT_MAILDIR => 'yes',
148         # Other examples. Could use makefile_regex instead.
149         #
150         WITH_CONTENT_SCAN => 'yes',
151         #DISABLE_TLS => 'yes',
152         #  Enable the proper libs here or see in makefile_regex
153         #  for use of pkg-config
154         #USE_OPENSSL => 'yes',
155         #USE_GNUTLS => 'yes',
156         #TLS_LIBS => '-lssl -lcrypto',
157         #
158         # Many testcases need dsearch
159         LOOKUP_DSEARCH => 'yes',
160         #LOOKUP_LDAP => 'yes',
161         #LOOKUP_INCLUDE => '-I/usr/include/mysql -I/usr/include/postgresql'
162         #LOOKUP_LIBS => '-lmysqlclient -lpq -lldap -llber',
163         #LDAP_LIB_TYPE => 'OPENLDAP2',
164         #LOOKUP_MYSQL => 'yes',
165         #LOOKUP_PGSQL => 'yes',
166         #SUPPORT_PROXY => 'yes',
167         #SUPPORT_SOCKS => 'yes',
168         #SUPPORT_SPF => 'yes',
169         #SUPPORT_DANE => 'yes',
170     },
171     # Settings to add to Local/Makefile. These will add to variables that
172     # are already defined earlier in the Makefile.  Example:
173     # LDFLAGS => '-Wall'  will create  LDFLAGS+='-Wall'
174     makefile_add =>{
175         # Show all warnings and errors
176         # Some platforms need the c99 setting enabled
177         CFLAGS => '-std=c99 -Wall -Wno-parentheses -Wno-dangling-else -Werror=format-security',
178         # Or enable debugging flags
179         #CFLAGS => '-g -Wall',
180         #LFLAGS => '-g',
181         # If set SUPPORT_SPF above, add it to the linker:
182         #LDFLAGS => '-lspf2',
183     },
184
185     # Another way to enable things in the Local/Makefile.
186     # Use a simple regex to change a default to what you want.
187     makefile_regex =>[
188         # If have perl devel libraries installed, can build embedded perl
189         #q(s/^# EXIM_PERL=/EXIM_PERL=/),
190         # Use SSL libraries
191         #q(s/^# (USE_GNUTLS(?:_PC)?=.*)/$1/),
192         #q(s/^# (USE_OPENSSL_PC=.*)/$1/),
193         # Several experimental features to consider
194         # May be outdated, please check a current EDITME for
195         # for options.
196         #q(s/^# (EXPERIMENTAL_CERTNAMES.*)/$1/),
197     ],
198
199     # The user compiled as the master exim username.
200     # Requirement: The buildfarm user that runs the build farm script *MUST* have
201     # the group of the exim user as a secondary group. Example:
202     # user=>farm, group=>farm, secondary_groups=>exim
203     # user=>exim, group=>exim
204     master_exim_user => 'exim',
205
206     # Range of tests to run if enable make_test in optional steps.
207     # Start with just a couple while getting the aminal set up,
208     # then enable the full set
209     range_num_tests => '1 2',
210     #range_num_tests => '1 5999',
211     # Hardcode some valid version for use during make test
212     exim_test_version => '4.84',
213
214     optional_steps =>{
215         # which optional steps to run and when to run them
216         # 'make-doc' => {min_hours_since => 24*7},
217         test  => {min_hours_since => 24*7},
218     },
219
220     # locales to test
221     locales => [qw( C )],
222
223     # Placemarker for auto-generated build features
224     config_opts =>[
225         qw()
226     ],
227
228     # Configuration tuning for test suite ./configure
229     test_configure_env => {},
230     test_configure_args => [],
231     # Configuration tuning for test suite run
232     # eg. test_run_args = '-FLAVOUR openssl_1_1_1',
233     test_run_args => '',        
234 );
235
236 if ($branch eq 'global')
237 {
238
239     $conf{branches_to_build} = 'ALL';
240
241     # or 'HEAD_PLUS_LATEST' or 'HEAD_PLUS_LATEST2'
242     # or [qw( HEAD RELx_y_STABLE etc )]
243
244 }
245
246 ##################################
247 #
248 # Can use perl below for
249 # per branch processing.
250 #
251 ##################################
252
253 # Eg:
254 #if ($branch eq 'exim-4.90+fixes')
255 #{
256 #       $conf{makefile_set}{SUPPORT_DANE} = '';
257 #}
258
259 1;