Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions autotest.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# ownCloud
# Nextcloud
#
# @author Vincent Petry
# @author Morris Jobke
Expand All @@ -10,6 +10,7 @@
# @author Joas Schilling
# @author Lukas Reschke
# @author Jörn Friedrich Dreyer
# @author Anna Larch
# @copyright 2012-2015 Thomas Müller [email protected]
#

Expand Down Expand Up @@ -61,7 +62,7 @@ else
fi

if ! [ -x "$PHPUNIT" ]; then
echo "phpunit executable not found, please install phpunit version >= 9.0 manually or via:" >&2
echo "phpunit executable not found, please install phpunit version >= 9.5 manually or via:" >&2
echo " cd build/integration && composer install" >&2
exit 3
fi
Expand All @@ -77,8 +78,8 @@ PHPUNIT_VERSION=$($PHPUNIT --version | cut -d" " -f2)
PHPUNIT_MAJOR_VERSION=$(echo "$PHPUNIT_VERSION" | cut -d"." -f1)
PHPUNIT_MINOR_VERSION=$(echo "$PHPUNIT_VERSION" | cut -d"." -f2)

if ! [ "$PHPUNIT_MAJOR_VERSION" -gt 6 -o \( "$PHPUNIT_MAJOR_VERSION" -eq 9 -a "$PHPUNIT_MINOR_VERSION" -ge 0 \) ]; then
echo "phpunit version >= 9.0 required. Version found: $PHPUNIT_VERSION" >&2
if ! [ "$PHPUNIT_MAJOR_VERSION" -gt 9 -o \( "$PHPUNIT_MAJOR_VERSION" -eq 9 -a "$PHPUNIT_MINOR_VERSION" -ge 5 \) ]; then
echo "phpunit version >= 9.5 required. Version found: $PHPUNIT_VERSION" >&2
exit 4
fi

Expand Down