aboutsummaryrefslogtreecommitdiff
blob: cd4bfdab87cb1361954d08acef2c67b2481936ae (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
# -*- 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\'"')

# 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',
}