# -*- 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, 'auto_assignee' : False, 'user' : 'LarryTheCow@Cow.mu', 'extra_summery' : '', 'min_match_word' : 2, '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/', ], }