buildbot/config.py

72 lines
2.1 KiB
Python
Raw Permalink Normal View History

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
2019-04-03 18:10:00 +08:00
#### config for all
2019-04-02 22:03:28 +08:00
ARCHS = ['aarch64', 'any', 'armv7h', 'x86_64']
2019-04-03 18:10:00 +08:00
REPO_NAME='jerryxiao'
PKG_COMPRESSION='xz'
2019-04-06 20:59:27 +08:00
BUILD_ARCHS = ['aarch64', 'x86_64']
BUILD_ARCH_MAPPING = {'aarch64': 'aarch64', 'x86_64': 'x86_64', 'any': 'x86_64', 'armv7h': None}
AUTOBUILD_FNAME = 'autobuild.yaml'
2019-04-02 22:03:28 +08:00
2019-04-05 00:21:12 +08:00
2019-04-03 18:10:00 +08:00
#### config for repo.py
2019-04-05 00:21:12 +08:00
2019-04-03 18:10:00 +08:00
REPO_CMD = 'repo-add --verify --remove'
2019-04-03 20:47:50 +08:00
REPO_REMOVE_CMD = 'repo-remove --verify'
2019-04-03 18:10:00 +08:00
RECENT_VERSIONS_KEPT = 3
PREFERRED_ANY_BUILD_ARCH = 'x86_64'
2019-04-05 00:21:12 +08:00
#### config for repod.py
REPOD_BIND_ADDRESS = ('localhost', 7010)
REPOD_BIND_PASSWD = b'mypassword'
REPO_PUSH_BANDWIDTH = 1 # 1Mbps
GPG_VERIFY_CMD = 'gpg --verify'
2019-04-03 18:10:00 +08:00
#### config for package.py
2019-04-05 00:21:12 +08:00
2019-04-03 18:10:00 +08:00
# Archlinux-Jerry Build Bot <buildbot@mail.jerryxiao.cc>
GPG_KEY = 'BEE4F1D5A661CA1FEA65C38093962CE07A0D5B7D'
2019-04-09 15:59:34 +08:00
GPG_SIGN_CMD = (f'gpg --default-key {GPG_KEY} --no-armor '
'--pinentry-mode loopback --passphrase \'\' '
2019-04-05 00:21:12 +08:00
'--detach-sign --yes --')
2019-04-07 17:14:50 +08:00
#### config for buildbot.py
2019-04-03 18:10:00 +08:00
2019-04-09 15:43:17 +08:00
UPDATE_INTERVAL = 60 # mins
2019-04-05 00:21:12 +08:00
MASTER_BIND_ADDRESS = ('localhost', 7011)
MASTER_BIND_PASSWD = b'mypassword'
2019-04-06 20:59:27 +08:00
PKGBUILD_DIR = 'pkgbuilds'
MAKEPKG = 'makepkg --nosign --needed --noconfirm --noprogressbar --nocolor'
MAKEPKG_UPD_CMD = 'makepkg --syncdeps --nobuild'
MAKEPKG_MAKE_CMD = 'makepkg --syncdeps --noextract'
MAKEPKG_MAKE_CMD_CLEAN = 'makepkg --syncdeps --noextract --clean --cleanbuild'
2019-04-09 20:48:37 +08:00
MAKEPKG_MAKE_CMD_MARCH = 'makepkg --syncdeps --clean --cleanbuild'
2019-04-06 20:59:27 +08:00
MAKEPKG_PKGLIST_CMD = f'{MAKEPKG} --packagelist'
2019-04-07 17:14:50 +08:00
2019-04-07 22:19:06 +08:00
CONTAINER_BUILDBOT_ROOT = 'shared/buildbot'
2019-04-09 20:48:37 +08:00
SHELL_ARCH_X64 = ['/usr/bin/sudo', 'machinectl', '--quiet', 'shell', 'build@archlinux', '/bin/bash', '-x', '-e', '-c']
SHELL_ARCH_ARM64 = ['/usr/bin/sudo', 'machinectl', '--quiet', 'shell', 'root@alarm', '/bin/su', '-l', 'alarm', '-c']
SHELL_ARM64_ADDITIONAL = 'set -e; set -x'
SHELL_TRAP = 'trap \'echo ++ exit $?\' ERR EXIT'
2019-04-09 21:15:03 +08:00
UPLOAD_CMD = 'rsync -avPh \"{src}\" repoupload:/srv/repo/buildbot/repo/updates/'
2019-04-10 20:36:43 +08:00
GIT_PULL = 'git pull'
GIT_RESET_SUBDIR = 'git checkout HEAD -- .'
2019-09-06 11:45:12 +08:00
2019-09-08 17:07:47 +08:00
# logfiles
MAIN_LOGFILE = 'buildbot.log'
2019-09-06 11:45:12 +08:00
CONSOLE_LOGFILE = 'buildbot.log.console'
2019-09-08 17:07:47 +08:00
PKG_UPDATE_LOGFILE = 'buildbot.log.update'
MAKEPKG_LOGFILE = 'buildbot.log.makepkg'