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" echo "Cleaning files"
make clean # Clean up the dependencies to remove some of the dev packages
composer remove \
# Clean up the dependencies to only remove the dev packages --optimize-autoloader \
#rm -rf vendor --no-interaction \
#composer install --no-interaction --no-dev --update-with-dependencies \
phpstan/phpstan \
weebly/phpstan-laravel \
bpocallaghan/generators \
barryvdh/laravel-ide-helper
rm -rf env.php config.php rm -rf env.php config.php
find ./vendor -type d -name ".git" -print0 | xargs rm -rf 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 # delete files in vendor that are rather large
rm -rf vendor/willdurand/geocoder/tests rm -rf vendor/willdurand/geocoder/tests
make clean
echo "creating tarball" echo "creating tarball"
cd /tmp cd /tmp
tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms

View File

@ -39,7 +39,6 @@
"igaster/laravel-theme": "^2.0", "igaster/laravel-theme": "^2.0",
"anhskohbo/no-captcha": "^3.0", "anhskohbo/no-captcha": "^3.0",
"league/csv": "^9.1", "league/csv": "^9.1",
"codedungeon/phpunit-result-printer": "^0.13.0",
"intervention/image": "^2.4" "intervention/image": "^2.4"
}, },
"require-dev": { "require-dev": {
@ -51,7 +50,8 @@
"bpocallaghan/generators": "5.0.1", "bpocallaghan/generators": "5.0.1",
"nunomaduro/collision": "^2.0", "nunomaduro/collision": "^2.0",
"phpstan/phpstan": "^0.9.2", "phpstan/phpstan": "^0.9.2",
"weebly/phpstan-laravel": "^1.1" "weebly/phpstan-laravel": "^1.1",
"codedungeon/phpunit-result-printer": "^0.13.0"
}, },
"autoload": { "autoload": {
"classmap": [ "classmap": [
@ -80,12 +80,6 @@
} }
}, },
"scripts": { "scripts": {
"post-root-package-install": [
"php -r \"file_exists('env.php') || copy('env.php.example', 'env.php');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [ "post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall" "Illuminate\\Foundation\\ComposerScripts::postInstall"
], ],

639
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +0,0 @@
<?php exit(); >
APP_KEY=base64:zdgcDqu9PM8uGWCtMxd74ZqdGJIrnw812oRMmwDF6KY=