blob: 60ec03f5330ae0bae0b4896e888a902a8dff4fff (
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
|
# Maintainer: Chih-Hsuan Yen <yan12125@gmail.com>
# Forked from aur/buildbot. Original contributors:
# Contributor: xRemaLx <anton.komolov@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>
pkgname=buildbot-git
pkgdesc="The Continuous Integration Framework"
pkgver=1.3.0.r53.g36d2e3332
pkgrel=1
arch=('any')
url="https://buildbot.net"
license=("GPL")
depends=('python-twisted' 'python-jinja' 'python-zope-interface' 'python-future'
'python-sqlalchemy-migrate' 'python-dateutil' 'python-txaio'
'python-autobahn' 'python-pyjwt')
makedepends=('git')
checkdepends=('python-treq' 'python-boto3' 'python-mock' 'python-moto'
'python-lz4' 'python-isort' 'python-pylint' 'python-pyenchant'
'flake8' 'python-txrequests' 'python-setuptools_trial'
'python-pyjade'
"buildbot-pkg-git=$pkgver" "buildbot-worker-git=$pkgver"
'openssh')
source=(git+https://github.com/buildbot/buildbot.git
skip-linux-distro-test.patch
buildbot-py37.patch::https://github.com/buildbot/buildbot/pull/4254.patch)
sha256sums=('SKIP'
'42fc2a771034c4134006ed18b52916e668aba3e2046b2fe188c7abcb3cffc0a5'
'78628cff9f91d161f7951f61924ca1e69f5f0ba559c1b397b542de3ca915ed0a')
pkgver() {
cd buildbot
( set -o pipefail
git describe --long --tag 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd buildbot
patch -Np1 -i ../buildbot-py37.patch
# This test relies on VERSION_ID field in /etc/os-release. On Arch Linux this
# field is missing.
patch -Np1 -i ../skip-linux-distro-test.patch
}
check() {
cd buildbot/master
TZ=UTC python setup.py test --rterrors
}
package() {
cd buildbot/master
python setup.py install --root="$pkgdir" --optimize=1
}
|