diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2017-11-28 20:53:29 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-28 22:15:01 +0000 |
commit | 90a94f85fe00d9fa4633bfa4d4f5e85ac91deb88 (patch) | |
tree | ca570759ae8558869b56e054df69f21ee63287e1 | |
parent | 87775ed37366d80e492edff713c4c12de833f631 (diff) | |
download | aports-90a94f85fe00d9fa4633bfa4d4f5e85ac91deb88.tar.bz2 aports-90a94f85fe00d9fa4633bfa4d4f5e85ac91deb88.tar.xz |
testing/py-distro: include check
-rw-r--r-- | testing/py-distro/APKBUILD | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/testing/py-distro/APKBUILD b/testing/py-distro/APKBUILD index a1844f2ef1..b75a0f3032 100644 --- a/testing/py-distro/APKBUILD +++ b/testing/py-distro/APKBUILD @@ -9,14 +9,21 @@ url="https://github.com/nir0s/distro" arch="noarch" license="MIT" makedepends="python2-dev py-setuptools python3-dev" +options="!check" # tox is not available +#checkdepends="py3-tox" subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$builddir" - python2 setup.py build || return 1 - python3 setup.py build || return 1 + python2 setup.py build + python3 setup.py build +} + +check() { + cd "$builddir" + tox } package() { |