diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-04-13 19:05:53 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-04-13 19:05:53 +0000 |
commit | 0a48c1f34aba9990974edf39b1cc9b81a5712420 (patch) | |
tree | fb7983ba7fd2812e8021a98184fd0ce9215d252c /testing/py-junit-xml/APKBUILD | |
parent | d0c35b483b4040eb00a902d46ab08ff83193c952 (diff) | |
download | aports-0a48c1f34aba9990974edf39b1cc9b81a5712420.tar.bz2 aports-0a48c1f34aba9990974edf39b1cc9b81a5712420.tar.xz |
testing/py-junit-xml: new aport
Creates JUnit XML test result documents that can be read by tools such as Jenkins
Diffstat (limited to 'testing/py-junit-xml/APKBUILD')
-rw-r--r-- | testing/py-junit-xml/APKBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/py-junit-xml/APKBUILD b/testing/py-junit-xml/APKBUILD new file mode 100644 index 0000000000..ce71a139bc --- /dev/null +++ b/testing/py-junit-xml/APKBUILD @@ -0,0 +1,52 @@ +# Maintainer: Leonardo Arena <rnalrd@alpinelinx.org> +pkgname=py-junit-xml +_pkgname=${pkgname/py-} +pkgver=1.8 +pkgrel=0 +pkgdesc="Creates JUnit XML test result documents that can be read by tools such as Jenkins" +url="https://pypi.python.org/pypi/junit-xml" +arch="noarch" +license="MIT" +depends="" +makedepends="python2-dev python3-dev py2-setuptools" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="https://pypi.python.org/packages/a6/2a/f8d5aab80bb31fcc789d0f2b34b49f08bd6121cd8798d2e37f416df2b9f8/junit-xml-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +package() { + mkdir -p "$pkgdir" +} + +check() { + cd "$builddir" + python2 setup.py test + python3 setup.py test +} + +_py2() { + replaces="$pkgname" + depends="${depends//py-/py2-}" + _py python2 +} + +_py3() { + depends="${depends//py-/py3-}" + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} +sha512sums="8fcef94ea73a77ad597bb3280578f0fea86573b779eb4aea1e458e55f1866637a7b43aa04502a65ecb1f2a7403cc61a76ccd35feb4b69eeb6fdc8352914d61a4 junit-xml-1.8.tar.gz" |