]> source.dussan.org Git - nextcloud-server.git/commitdiff
ci(checkers): Require composer autoloaders for all shipped apps 37481/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Thu, 12 Jan 2023 09:31:36 +0000 (10:31 +0100)
committerChristoph Wurst <ChristophWurst@users.noreply.github.com>
Mon, 24 Jul 2023 11:58:37 +0000 (13:58 +0200)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
build/autoloaderchecker.sh

index da3a7ef254663d5a8eb9e335f176131c50b4a364..09bcff0b85356c17420511a100d81fe97c97ecf8 100755 (executable)
@@ -38,12 +38,10 @@ for app in ${REPODIR}/apps/*; do
                continue
        fi
     if [[ -d $app ]]; then
-        if [[ -e ${app}/composer/composer.json ]]; then
-            echo
-            echo "Regenerating composer files for ${app}"
-            $COMPOSER_COMMAND i --no-dev -d ${app}/composer
-            $COMPOSER_COMMAND dump-autoload -d ${app}/composer
-        fi
+               echo
+               echo "Regenerating composer files for ${app}"
+               $COMPOSER_COMMAND i --no-dev -d ${app}/composer || exit 1
+               $COMPOSER_COMMAND dump-autoload -d ${app}/composer || exit 1
     fi
 done