diff --git a/pipeline.toml b/pipeline.toml index 4673e2f..7457ce1 100644 --- a/pipeline.toml +++ b/pipeline.toml @@ -14,6 +14,18 @@ test = [["php", "artisan", "test", "--compact", "--testsuite=Feature"]] finalize = [ ["composer", "install", "--no-dev", "--prefer-dist", "--optimize-autoloader", "--no-interaction", "--no-progress"], ["php", "artisan", "optimize:clear", "--no-interaction"], + ["bash", "-c", ''' +set -eu +test -f vendor/autoload.php +find vendor -mindepth 5 -maxdepth 5 -type d -path '*/resources/lang/*' ! -name de ! -name en -exec rm -rf {} + +if [ -d vendor/nesbot/carbon/src/Carbon/Lang ]; then + find vendor/nesbot/carbon/src/Carbon/Lang -type f ! -name 'de*' ! -name 'en*' -delete +fi +find vendor -mindepth 3 -maxdepth 3 -type d \( -name tests -o -name docs -o -name .github \) -exec rm -rf {} + +find vendor -type f \( -iname '*.md' -o -name 'phpunit.xml*' -o -name '.gitattributes' -o -name '.editorconfig' \) -delete +printf 'Vendor-Dateien nach Bereinigung: ' +find vendor -type f | wc -l +'''], ] exclude = [ "node_modules", "tests", "docs", "styles", "scripts", "storage", ".gitea", ".github",