diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-05-27 15:33:15 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-24 09:34:17 +0100 |
commit | 5b0f7f7501f3705f112216771f2e4971a9885096 (patch) | |
tree | 3b50b90725e81e7c7b92e27088f4ce7abc16fc83 /autotest.sh | |
parent | a23cd7b961fc7c0d8d52cf2d914bdee36e2a40bc (diff) | |
download | nextcloud-server-5b0f7f7501f3705f112216771f2e4971a9885096.tar.gz nextcloud-server-5b0f7f7501f3705f112216771f2e4971a9885096.zip |
Use phpunit from composer if available
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'autotest.sh')
-rwxr-xr-x | autotest.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/autotest.sh b/autotest.sh index f748cbbed12..84ffa0a1c78 100755 --- a/autotest.sh +++ b/autotest.sh @@ -30,8 +30,13 @@ if [ -z "$PHP_EXE" ]; then fi PHP=$(which "$PHP_EXE") if [ -z "$PHPUNIT_EXE" ]; then - PHPUNIT_EXE=phpunit + if [ -f "build/integration/vendor/bin/phpunit" ]; then + PHPUNIT_EXE="./build/integration/vendor/bin/phpunit" + else + PHPUNIT_EXE=phpunit + fi fi + PHPUNIT=$(which "$PHPUNIT_EXE") set -e @@ -56,7 +61,7 @@ else fi if ! [ -x "$PHPUNIT" ]; then - echo "phpunit executable not found, please install phpunit version >= 6.5" >&2 + echo "phpunit executable not found, please install phpunit version >= 9.0" >&2 exit 3 fi |