2 # -*-perl-*- hey - emacs - this is a perl file
6 Copyright (c) 2003-2010, Andrew Dunstan
8 See accompanying License file for license details
18 # use vars qw($VERSION); $VERSION = 'REL_0.1';
23 $branch = $main::branch;
26 # This template assumes that the user running the buildfarm process is "farm"
29 # default is github mirror of Exim
30 scmrepo => 'https://github.com/Exim/exim.git',
31 # webref for diffs on server - use default for community
33 # for --reference on git repo
34 # git_reference => undef,
35 # or gmake if required. can include path if necessary.
37 # 1 = any make will do, 0 = require GNU (default)
39 # >1 for parallel "make" and "make check" steps
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
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 => '/home/farm',
48 # this directory must exist before anything will work
49 build_root => '/home/farm/buildfarm',
50 # set true to do vpath builds
53 keep_error_builds => 0,
54 # Linux style, use "*.core" for BSD
55 core_file_glob => "core*",
57 # build process will connect to this URL to upload results
58 target => "http://eximbuild.mrball.net/cgi-bin/eximstatus.pl",
59 # update_personality uses this when you want to update your
60 # machine's info (OS, version, compiler, version)
61 upgrade_target => "http://eximbuild.mrball.net/cgi-bin/upgrade.pl",
63 # Your host alias and password in the BuildFarm
64 animal => "alias_assigned_by_build_team",
65 secret => "secret_assigned_by_build_team",
67 # if force_every is a scalar it will be used on all branches, like this
69 # force_every => 336 , # max hours between builds, undef or 0 = unforced
70 # we now prefer it to be a hash with branch names as the keys, like this
72 # this setting should be kept conservatively high, or not used at all -
73 # for the most part it's best to let the script decide if something
74 # has changed that requires a new run for the branch.
76 # an entry with a name of 'default' matches any branch not named
82 # alerts are triggered if the server doesn't see a build on a branch after
83 # this many hours, and then sent out every so often,
85 #HEAD => { alert_after => 72, alert_every => 24 },
88 print_success => undef,
90 # include / exclude pattern for files whose trigger a build
91 # if both are specified then they are both applied as filters
92 # undef means don't ignore anything.
93 # exclude qr[/(doc|po)/] to ignore changes to docs and po files (recommended)
94 # undef means null filter.
95 trigger_exclude => qr[/(doc|po)/],
96 trigger_include => undef,
98 # settings for mail notices - default to notifying nobody
99 # these lists contain addresses to be notified
100 # must be complete email addresses, as the email is sent from the server
102 all => [], # unconditional
103 fail => [], # if this build fails
104 change => [], # if this build causes a state change
105 green => [], # if this build causes a state change to/from OK
108 # env settings to apply within build/report process
109 # these settings will be seen by all the processes, including the
112 # use a dedicated cache for the build farm. this should give us
113 # very high hit rates and slightly faster cache searching.
114 CCACHE_DIR => "/home/farm/buildfarm/ccache/$branch",
116 ### set this if you need a proxy setting for the
117 # outbound web transaction that reports the results
118 # BF_PROXY => 'http://my.proxy.server:portnum/',
121 # Environment settings on the make commandline.
122 # These cause full compile output and don't strip the binary.
123 make_args => q/FULLECHO='' STRIP_COMMAND=''/,
125 # Settings to add to Local/Makefile. These will set or override
126 # previous definitions of variables. Example:
127 # LDFLAGS => '-Wall' will create LDFLAGS = '-Wall'
129 # comment out if not using ccache
131 # Required for some tests to pass
132 AUTH_PLAINTEXT => 'yes',
133 SUPPORT_MAILDIR => 'yes',
134 # Other examples. Could use makefile_regex instead.
135 #SUPPORT_TLS => 'yes',
136 #USE_OPENSSL_PC => 'openssl',
137 #TLS_LIBS => '-lssl -lcrypto',
138 #EXPERIMENTAL_SPF => 'yes',
139 #LOOKUP_LDAP => 'yes',
140 #LOOKUP_INCLUDE => '-I/usr/include/mysql',
141 #LOOKUP_LIBS => '-lmysqlclient -lpq -lldap -llber',
142 #LDAP_LIB_TYPE => 'OPENLDAP2',
144 # Settings to add to Local/Makefile. These will add to variables that
145 # are already defined earlier in the Makefile. Example:
146 # LDFLAGS => '-Wall' will create LDFLAGS+='-Wall'
148 # Show all warnings and errors
149 CFLAGS => '-Wall -Werror=format-security',
150 # Or enable debugging flags
151 #CFLAGS => '-g -Wall',
153 # If set EXPERIMENTAL_SPF above, add it to the linker:
154 #LDFLAGS => '-lspf2',
157 # Another way to enable things in the Local/Makefile.
158 # Use a simple regex to change a default to what you want.
160 # If have perl devel libraries installed, can build embedded perl
161 #q(s/^# EXIM_PERL=/EXIM_PERL=/),
162 # If have mysql devel libraries installed
163 #q(s/^# LOOKUP_MYSQL=/LOOKUP_MYSQL=/),
164 # If have postgres devel librarires installed
165 #q(s/^# LOOKUP_PGSQL=/LOOKUP_PGSQL=/),
166 # Severl experimental features to consider
167 #q(s/^# EXPERIMENTAL_CERTNAMES.*/EXPERIMENTAL_CERTNAMES=yes/),
168 #q(s/^# EXPERIMENTAL_DNSSEC.*/EXPERIMENTAL_DNSSEC=yes/),
169 # Proxy causes some extra debug output messing with tests
170 #q(s/^# EXPERIMENTAL_PROXY.*/EXPERIMENTAL_PROXY=yes/),
171 #q(s/^# EXPERIMENTAL_TPDA.*/EXPERIMENTAL_TPDA=yes/),
174 # The user compiled as the master exim username.
175 # Requirement: The buildfarm user that runs the build farm script *MUST* have
176 # the group of the exim user as a secondary group. Example:
177 # user=>farm, group=>farm, secondary_groups=>exim
178 # user=>exim, group=>exim
179 master_exim_user => "exim",
181 # Range of tests to run if enable make_test in optional steps.
182 #range_num_tests => '1 999',
183 range_num_tests => '1 5999',
184 # Hardcode some valid version for use during make test
185 exim_test_version => '4.84',
188 # which optional steps to run and when to run them
189 # 'make-doc' => {min_hours_since => 24*7},
190 test => {min_hours_since => 24*7},
194 locales => [qw( C )],
196 # Placemarker for auto-generated build features
203 if ($branch eq 'global')
206 $conf{branches_to_build} = 'ALL';
208 # or 'HEAD_PLUS_LATEST' or 'HEAD_PLUS_LATEST2'
209 # or [qw( HEAD RELx_y_STABLE etc )]
213 ##################################
215 # Can use perl below for
216 # per branch processing.
218 ##################################