aboutsummaryrefslogtreecommitdiff
blob: 474da76f8494342af4d87fdf1616b37e8d21c564 (plain)
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
# -*- python -*-
# ex: set filetype=python:

# This is a sample gentoo ci buildmaster config file. It must be installed as
# 'gentooci.cfg' in your buildmaster's base directory.

# This is the dictionary that the buildmaster pays attention to. We also use
# a shorter alias to save typing.
c = BuildmasterConfig = {}

####### DB URL
# This specifies what database buildbot uses to store its state.
# It's easy to start with sqlite, but it's recommended to switch to a dedicated
# database, such as PostgreSQL or MySQL, for use in production environments.
# http://docs.buildbot.net/current/manual/configuration/global.html#database-specification
c['db_url'] = "postgresql://buildbot:password@ip/gentoo-ci"

makeconf_list = []
makeconf_list.append('PORTAGE_TMPFS="/dev/shm"')
makeconf_list.append('CLEAN_DELAY=0')
makeconf_list.append('PORT_LOGDIR="/var/cache/portage/logs"')
makeconf_list.append('PKGDIR="/var/cache/portage/packages"')
makeconf_list.append('DISTDIR="/var/cache/portage/distfiles"')
makeconf_list.append('PORTAGE_ELOG_CLASSES="*"')
# We need echo:info to get the logfile name
makeconf_list.append('PORTAGE_ELOG_SYSTEM="save:* echo:info"')
# use ansifilter on the logs
makeconf_list.append('PORTAGE_LOG_FILTER_FILE_CMD="bash -c \'ansifilter --ignore-clear; exec cat\'"')
# use xz for Portage compression of both installed files and binary packages:
makeconf_list.append('PORTAGE_COMPRESS="xz"')
makeconf_list.append('BINPKG_COMPRESS="xz"')

# This specifies what project buildbot uses for Gentoo Ci as default
c['project'] = {
    'update_db' : 'gosbsbase',
    'worker_portage_repos_path' : '/var/db/repos',
    'config_makeconfig' : makeconf_list,
}

# This specifies what the repository base dir is
c['repository_basedir'] = "repositorys"

# This specifies worker configs
c['worker_config'] = {
    'basedir' : None,
    'repository_basedir' : 'repositorys',
    'portage_repos_path' : '/var/db/repos',
}
# This specifies bug configs
c['bug_config'] = {
    'enable' : True,
    'aout_assignee' : False,
    'user' : 'LarryTheCow@Cow.mu',
    'extra_summery' : '',
    'buildbot_comment' : [
    'This was build on a tinderbox that use Buildbot API[1].',
    'We use docker images to build on.',
    'Web: https://ci.dev.gentoo.org:8010/#/',
    'Code: https://gitweb.gentoo.org/proj/tinderbox-cluster.git',
    'Wiki: https://wiki.gentoo.org/wiki/Project:Tinderbox-cluster',
    'How to get more info: https://wiki.gentoo.org/wiki/Project:Tinderbox-cluster/something',
    'IRC: #gentoo-ci on libera',
    '[1] https://buildbot.net/',
    ],
}