diff options
author | Matt Fields | 2017-12-15 09:29:53 -0500 |
---|---|---|
committer | Matt Fields | 2017-12-15 09:29:53 -0500 |
commit | b8780b2d0a73a609cc674318aea7d4ca4597f05d (patch) | |
tree | bcb9b45acad8a4c0a0ff0fc966e81cdd9cf0b3c8 /PKGBUILD | |
parent | 6bafa62c9d5cc474fcdc582c25db9a284b848430 (diff) | |
download | aur-b8780b2d0a73a609cc674318aea7d4ca4597f05d.tar.gz |
Update prepare() to allow using a system level install of phpunit (included 3.x copy breaks in php7.2)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,6 +1,6 @@ pkgname=wp-cli pkgver=1.4.1 -pkgrel=3 +pkgrel=4 pkgdesc="A command-line tool for managing WordPress" url="http://wp-cli.org/" arch=('any') @@ -43,7 +43,13 @@ build() { check() { cd "${srcdir}/${pkgname}-${pkgver}" - ./vendor/bin/phpunit + if [[ -z $(hash phpunit > /dev/null 2>&1 || echo $?) ]]; then + echo "Using system-level phpunit..." + phpunit + else + echo "Using included phpunit..." + ./vendor/bin/phpunit + fi php ./wp-cli.phar --version } |