diff options
author | Chih-Hsuan Yen | 2018-07-20 14:25:20 +0800 |
---|---|---|
committer | Chih-Hsuan Yen | 2018-07-20 14:25:20 +0800 |
commit | e1331a46364fa4b60bb7a1d09af47793e3416fd4 (patch) | |
tree | 2d2086287ce59af49d439a90f8479bf8bc24a920 | |
parent | 36dc42f64f9ff680c73c995822e4faef2b155923 (diff) | |
download | aur-e1331a46364fa4b60bb7a1d09af47793e3416fd4.tar.gz |
add check()
-rw-r--r-- | .SRCINFO | 41 | ||||
-rw-r--r-- | PKGBUILD | 49 | ||||
-rw-r--r-- | ignore-invalid-escape-sequence.patch | 11 | ||||
-rw-r--r-- | skip-linux-distro-test.patch | 9 |
4 files changed, 69 insertions, 41 deletions
@@ -1,24 +1,22 @@ pkgbase = buildbot-git - pkgver = 1.2.0.r40.g16dff07ce - pkgrel = 1 + pkgdesc = The Continuous Integration Framework + pkgver = 1.2.0.r43.g55fc75395 + pkgrel = 3 url = https://buildbot.net arch = any license = GPL + checkdepends = python-treq + checkdepends = python-boto3 + checkdepends = python-mock + checkdepends = python-moto + checkdepends = python-lz4 + checkdepends = python-isort + checkdepends = python-pylint + checkdepends = python-pyenchant + checkdepends = flake8 + checkdepends = buildbot-pkg-git=1.2.0.r43.g55fc75395 + checkdepends = buildbot-worker-git=1.2.0.r43.g55fc75395 makedepends = git - makedepends = python-twisted - makedepends = python-jinja - makedepends = python-zope-interface - makedepends = python-future - makedepends = python-sqlalchemy-migrate - makedepends = python-dateutil - makedepends = python-txaio - makedepends = python-autobahn - makedepends = python-pyjwt - source = git+https://github.com/buildbot/buildbot.git - sha256sums = SKIP - -pkgname = buildbot-git - pkgdesc = The Continuous Integration Framework depends = python-twisted depends = python-jinja depends = python-zope-interface @@ -28,9 +26,12 @@ pkgname = buildbot-git depends = python-txaio depends = python-autobahn depends = python-pyjwt + source = git+https://github.com/buildbot/buildbot.git + source = ignore-invalid-escape-sequence.patch + source = skip-linux-distro-test.patch + sha256sums = SKIP + sha256sums = eb85942f5d9f43ed46c8832f318314084dcde2e53f698bf104af28c3a449ef1f + sha256sums = 42fc2a771034c4134006ed18b52916e668aba3e2046b2fe188c7abcb3cffc0a5 -pkgname = buildbot-worker-git - pkgdesc = Buildbot Worker Daemon - depends = python-twisted - depends = python-future +pkgname = buildbot-git @@ -4,19 +4,26 @@ # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: William Rea <sillywilly@gmail.com> -pkgbase=buildbot-git -pkgname=('buildbot-git' 'buildbot-worker-git') -pkgver=1.2.0.r40.g16dff07ce -pkgrel=1 +pkgname=buildbot-git +pkgdesc="The Continuous Integration Framework" +pkgver=1.2.0.r43.g55fc75395 +pkgrel=3 arch=('any') url="https://buildbot.net" license=("GPL") -makedepends=('git' - 'python-twisted' 'python-jinja' 'python-zope-interface' 'python-future' - 'python-sqlalchemy-migrate' 'python-dateutil' 'python-txaio' - 'python-autobahn' 'python-pyjwt') -source=(git+https://github.com/buildbot/buildbot.git) -sha256sums=('SKIP') +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' + "buildbot-pkg-git=$pkgver" "buildbot-worker-git=$pkgver") +source=(git+https://github.com/buildbot/buildbot.git + ignore-invalid-escape-sequence.patch + skip-linux-distro-test.patch) +sha256sums=('SKIP' + 'eb85942f5d9f43ed46c8832f318314084dcde2e53f698bf104af28c3a449ef1f' + '42fc2a771034c4134006ed18b52916e668aba3e2046b2fe188c7abcb3cffc0a5') pkgver() { cd buildbot @@ -26,21 +33,21 @@ pkgver() { ) } +prepare() { + cd buildbot -package_buildbot-git() { - depends=('python-twisted' 'python-jinja' 'python-zope-interface' 'python-future' - 'python-sqlalchemy-migrate' 'python-dateutil' 'python-txaio' - 'python-autobahn' 'python-pyjwt') - pkgdesc="The Continuous Integration Framework" + patch -Np1 -i ../ignore-invalid-escape-sequence.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 - python setup.py install --root="$pkgdir" --optimize=1 + TZ=UTC python setup.py test } -package_buildbot-worker-git() { - pkgdesc="Buildbot Worker Daemon" - depends=('python-twisted' 'python-future') - - cd buildbot/worker +package() { + cd buildbot/master python setup.py install --root="$pkgdir" --optimize=1 } diff --git a/ignore-invalid-escape-sequence.patch b/ignore-invalid-escape-sequence.patch new file mode 100644 index 000000000000..610bcde0cd88 --- /dev/null +++ b/ignore-invalid-escape-sequence.patch @@ -0,0 +1,11 @@ +diff --git a/master/buildbot/test/__init__.py b/master/buildbot/test/__init__.py +index 331e5c53b..f97f2766a 100644 +--- a/master/buildbot/test/__init__.py ++++ b/master/buildbot/test/__init__.py +@@ -141,3 +141,6 @@ warnings.filterwarnings('ignore', r"The value of convert_charrefs will become Tr + + # Twisted 18.4+ adds a deprecation warning and still use the deprecated API in its own code! + warnings.filterwarnings('ignore', ".*getClientIP was deprecated.*", DeprecationWarning) ++ ++# temporarily disable to make tests pass ++warnings.filterwarnings('ignore', 'invalid escape sequence', DeprecationWarning) diff --git a/skip-linux-distro-test.patch b/skip-linux-distro-test.patch new file mode 100644 index 000000000000..c85661c5b74c --- /dev/null +++ b/skip-linux-distro-test.patch @@ -0,0 +1,9 @@ +diff --git a/master/buildbot/test/unit/test_buildbot_net_usage_data.py b/master/buildbot/test/unit/test_buildbot_net_usage_data.py +index 709c804a9..7885d1bcd 100644 +--- a/master/buildbot/test/unit/test_buildbot_net_usage_data.py ++++ b/master/buildbot/test/unit/test_buildbot_net_usage_data.py +@@ -153,4 +153,3 @@ class Tests(unittest.TestCase): + distro = linux_distribution() + self.assertEqual(len(distro), 2) + self.assertNotIn("unknown", distro[0]) +- self.assertNotIn("unknown", distro[1]) |