Browse Source
dont use system composer for autoload checker
this ensures that the same composer version is used by everyone (and ci)
Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/24396/head
Robin Appelman
5 years ago
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
2 changed files with
11 additions and
17 deletions
-
.gitignore
-
build/autoloaderchecker.sh
|
|
|
@ -158,3 +158,5 @@ clover.xml |
|
|
|
# Tests - dependencies |
|
|
|
tests/acceptance/composer.lock |
|
|
|
tests/acceptance/vendor/ |
|
|
|
|
|
|
|
composer.phar |
|
|
|
@ -1,26 +1,18 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
COMPOSER_COMMAND=$(which "composer") |
|
|
|
if [ "$COMPOSER_COMMAND" = '' ] |
|
|
|
COMPOSER_COMMAND="php composer.phar" |
|
|
|
|
|
|
|
if [ -e "composer.phar" ] |
|
|
|
then |
|
|
|
#No global composer found, try local or download it |
|
|
|
if [ -e "composer.phar" ] |
|
|
|
then |
|
|
|
echo "Composer found: checking for update" |
|
|
|
else |
|
|
|
echo "Composer not found: fetching" |
|
|
|
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" |
|
|
|
php composer-setup.php |
|
|
|
php -r "unlink('composer-setup.php');" |
|
|
|
fi |
|
|
|
|
|
|
|
COMPOSER_COMMAND="php composer.phar" |
|
|
|
echo "Composer found: checking for update" |
|
|
|
$COMPOSER_COMMAND self-update |
|
|
|
else |
|
|
|
echo "Global composer found: checking for update" |
|
|
|
echo "Composer not found: fetching" |
|
|
|
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" |
|
|
|
php composer-setup.php |
|
|
|
php -r "unlink('composer-setup.php');" |
|
|
|
fi |
|
|
|
|
|
|
|
#Make sure we are on the latest composer |
|
|
|
$COMPOSER_COMMAND self-update |
|
|
|
|
|
|
|
REPODIR=`git rev-parse --show-toplevel` |
|
|
|
|
|
|
|
|