From c634954beef3f7c20d59e499e7104fbba74789f7 Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Sat, 16 Sep 2017 23:24:17 -0700 Subject: [PATCH] Delete unused test cases Even though --prefer-dist is used, the test folders of symfony still show up. Nothing in `/opt/phan/tests/` is needed to invoke Phan on an external project in /mnt/src. These take up 0.5 MB in the final image(19.6 vs 20.1 MB) --- builder/scripts/mkimage-phan.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/scripts/mkimage-phan.bash b/builder/scripts/mkimage-phan.bash index 38967a4..427cbb0 100755 --- a/builder/scripts/mkimage-phan.bash +++ b/builder/scripts/mkimage-phan.bash @@ -56,6 +56,7 @@ build() { php7 /usr/local/bin/composer.phar --prefer-dist --no-dev --ignore-platform-reqs --no-interaction install rm -rf .git + rm -rf tests vendor/symfony/console/Tests vendor/symfony/debug/Tests ./vendor/symfony/debug/Resources/ext/tests } >&2 # install php-ast