mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
ci: Install PHPUnit 10
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
04118afdab
commit
07a0ed0848
3 changed files with 262 additions and 378 deletions
12
autotest.sh
12
autotest.sh
|
|
@ -22,8 +22,8 @@ if [ -z "$PHP_EXE" ]; then
|
|||
fi
|
||||
PHP=$(which "$PHP_EXE")
|
||||
if [ -z "$PHPUNIT_EXE" ]; then
|
||||
if [ -f build/integration/vendor/bin/phpunit ]; then
|
||||
PHPUNIT_EXE="./build/integration/vendor/bin/phpunit"
|
||||
if [ -f lib/composer/bin/phpunit ]; then
|
||||
PHPUNIT_EXE="./lib/composer/bin/phpunit"
|
||||
PHPUNIT=$(readlink -f "$PHPUNIT_EXE")
|
||||
else
|
||||
PHPUNIT_EXE=phpunit
|
||||
|
|
@ -53,8 +53,8 @@ else
|
|||
fi
|
||||
|
||||
if ! [ -x "$PHPUNIT" ]; then
|
||||
echo "phpunit executable not found, please install phpunit version >= 9.0 manually or via:" >&2
|
||||
echo " cd build/integration && composer install" >&2
|
||||
echo "phpunit executable not found, please install phpunit version >= 10.5 manually or via:" >&2
|
||||
echo " composer install" >&2
|
||||
exit 3
|
||||
fi
|
||||
|
||||
|
|
@ -69,8 +69,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 9 -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 10 -o \( "$PHPUNIT_MAJOR_VERSION" -eq 10 -a "$PHPUNIT_MINOR_VERSION" -ge 5 \) ]; then
|
||||
echo "phpunit version >= 10.5 required. Version found: $PHPUNIT_VERSION" >&2
|
||||
exit 4
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@
|
|||
}
|
||||
},
|
||||
"require": {
|
||||
"phpunit/phpunit": "^9.6"
|
||||
"phpunit/phpunit": "^10.5.35"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
626
vendor-bin/phpunit/composer.lock
generated
626
vendor-bin/phpunit/composer.lock
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue