mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
chore(CI): Require a minimum composer version to make sure the autoloader is okay
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
dd3d689e04
commit
f194314aaf
1 changed files with 10 additions and 0 deletions
|
|
@ -14,6 +14,16 @@ else
|
|||
fi
|
||||
|
||||
|
||||
COMPOSER_VERSION=$($COMPOSER_COMMAND --version | cut -d" " -f3)
|
||||
COMPOSER_MAJOR_VERSION=$(echo "$COMPOSER_VERSION" | cut -d"." -f1)
|
||||
COMPOSER_MINOR_VERSION=$(echo "$COMPOSER_VERSION" | cut -d"." -f2)
|
||||
COMPOSER_PATCH_VERSION=$(echo "$COMPOSER_VERSION" | cut -d"." -f3)
|
||||
|
||||
if ! [ "$COMPOSER_MAJOR_VERSION" -gt 2 -o \( "$COMPOSER_MAJOR_VERSION" -eq 2 -a "$COMPOSER_MINOR_VERSION" -ge 6 \) -o \( "$COMPOSER_MAJOR_VERSION" -eq 2 -a "$COMPOSER_MINOR_VERSION" -eq 5 -a "$COMPOSER_PATCH_VERSION" -ge 5 \) ]; then
|
||||
echo "composer version >= 2.5.5 required. Version found: $COMPOSER_VERSION" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
REPODIR=`git rev-parse --show-toplevel`
|
||||
|
||||
#Redump the main autoloader
|
||||
|
|
|
|||
Loading…
Reference in a new issue