buildbot/config.py

58 lines
1.7 KiB
Python
Raw 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'
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-07 17:14:50 +08:00
# single quote may cause problem here
SHELL_ARCH_X64 = 'sudo machinectl --quiet shell build@archlinux /bin/bash -c \'{command}\''
SHELL_ARCH_ARM64 = 'sudo machinectl --quiet shell root@alarm /bin/bash -c $\'su -l alarm -c \\\'{command}\\\'\''