summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri Merejkowsky2017-11-01 13:02:51 +0100
committerDimitri Merejkowsky2017-11-01 13:02:51 +0100
commit72aad5c1bad18df407ed1814d0e65329f19b247d (patch)
tree546db9680cc415d762a241570b43638b602f4c9c
parent7baf85a72eb04126e3754d41dc28e86049c6d0fe (diff)
downloadaur-72aad5c1bad18df407ed1814d0e65329f19b247d.tar.gz
Add check()
-rw-r--r--PKGBUILD6
1 files changed, 6 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 930aa2dc07e..011ff8837bf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,12 +11,18 @@ depends=('python' 'python-cli-ui' 'python-attrs')
makedepends=('python' 'python-setuptools')
source=('https://files.pythonhosted.org/packages/dc/8f/a0e9dc4535fa99a5f750470de9b57a02725840855c04a68d83fee7aa7dec/pycp-8.0.1.tar.gz')
md5sums=('8b4a6b8f0ce26dfca2c9e8de914a1506')
+checkdepends=('python-pytest' 'python-pytest-mock')
build() {
cd ${srcdir}/pycp-${pkgver}
python setup.py build
}
+check() {
+ cd ${srcdir}/pycp-${pkgver}
+ pytest
+}
+
package() {
cd ${srcdir}/pycp-${pkgver}
python setup.py install --root=$pkgdir/ --optimize=1