Update deploy scripts to remove some extra packages

This commit is contained in:
Nabeel Shahzad
2018-05-06 10:01:02 -05:00
parent 0cd7b3b71f
commit f671d3f624
4 changed files with 333 additions and 335 deletions

View File

@@ -28,11 +28,15 @@ if [ "$TRAVIS" = "true" ]; then
echo "Cleaning files"
make clean
# Clean up the dependencies to only remove the dev packages
#rm -rf vendor
#composer install --no-interaction --no-dev
# Clean up the dependencies to remove some of the dev packages
composer remove \
--optimize-autoloader \
--no-interaction \
--update-with-dependencies \
phpstan/phpstan \
weebly/phpstan-laravel \
bpocallaghan/generators \
barryvdh/laravel-ide-helper
rm -rf env.php config.php
find ./vendor -type d -name ".git" -print0 | xargs rm -rf
@@ -56,6 +60,8 @@ if [ "$TRAVIS" = "true" ]; then
# delete files in vendor that are rather large
rm -rf vendor/willdurand/geocoder/tests
make clean
echo "creating tarball"
cd /tmp
tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms