-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_test
executable file
·64 lines (50 loc) · 1.68 KB
/
build_test
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
#!/bin/sh
# this is the main build script for build.samba.org
# it gets run on all the build boxes via cron
# any errors get put in build.log
# we used a fixed path that is a superset of the required paths.
build_test_path=.:$HOME/bin:/usr/local/bin:/usr/bin:/bin:/opt/SUNWspro/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/ccs/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/bsd
PATH=$build_test_path
export PATH
CFLAGS=""
export CFLAGS
build_test_id='$Id$'
# go to our main directory
cd $HOME/build_farm || exit 1
(
echo
date
#
# allow admins to configure things like
# PATH, RSYNC_PROXY, ...
#
if [ -f build_test.settings.local ]; then
build_test_settings_local_file="build_test.settings.local"
. $build_test_settings_local_file
fi
# we only want the short name of the host - use cut for portability
host=`hostname | cut -d. -f1`
# make sure the password isn't readable by anyone
chmod 600 .password
# grab the latest versions of the scripts
rsync --delete --include='*.fns' --exclude='*' --timeout=200 -q -az build.samba.org::build_farm/ .
# load general functions
. build_test.fns
#
# allow admins to overload things like send_logs()
# if it's required to have secret data in it,
# that can't be in a per host .fns file on
# the build-farm svn tree
#
if [ -f build_test.fns.local ]; then
build_test_fns_local_file="build_test.fns.local"
. $build_test_fns_local_file
fi
if [ -f $host.fns ]; then
# load host specific functions
build_test_used_fns_file="$host.fns"
else
build_test_used_fns_file="generic.fns"
fi
. $build_test_used_fns_file
) >> build.log 2>&1