diff options
author | Dan Beste | 2018-12-26 17:50:18 -0600 |
---|---|---|
committer | Dan Beste | 2018-12-26 17:50:18 -0600 |
commit | 08538a6f07d0829b702a9a69b386f81d269a8d9d (patch) | |
tree | cdda8af57ce7f0a8cf95ca9558159435a440a9d2 | |
parent | 8e053ea96d0b1e94de738527a2920d17e981558d (diff) | |
download | aur-08538a6f07d0829b702a9a69b386f81d269a8d9d.tar.gz |
upgpkg: borgmatic 1.2.14-3
Re-enable tests. It's a bit hacky, but it gets the job done... I'm open
to suggestions if there's a simpler method to get them running.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 18 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = borgmatic pkgdesc = A wrapper script for Borg backup software that creates and prunes backups pkgver = 1.2.14 - pkgrel = 2 + pkgrel = 3 url = https://torsion.org/borgmatic/ install = borgmatic.install arch = any @@ -4,7 +4,7 @@ pkgname='borgmatic' pkgver=1.2.14 -pkgrel=1 +pkgrel=3 pkgdesc='A wrapper script for Borg backup software that creates and prunes backups' arch=('any') url='https://torsion.org/borgmatic/' @@ -24,11 +24,22 @@ sha256sums=( '1b033f96dc7404c26fad0f5fbbdda2fd93959869a7737092049ed7cfe994602e' ) -#check() { -# cd "${pkgname}" -# -# pytest --ignore='./tests/end-to-end' -#} +_pytestdir="$(mktemp -d)" + +prepare() { + cd "${pkgname}" + + python setup.py -q install --root="${_pytestdir}" +} + +check() { + cd "${pkgname}" + + export PATH="${PATH}:${_pytestdir}/usr/bin" + export PYTHONPATH="${PYTHONPATH}:${_pytestdir}/usr/lib/python*/site-packages/" + + pytest +} package() { cd "${pkgname}" |