Change order of cleanup

This commit is contained in:
Nabeel Shahzad 2018-03-26 14:48:01 -05:00
parent 99142f9fec
commit c9b58a4d9d

View File

@ -4,10 +4,6 @@ if [ "$TRAVIS" = "true" ]; then
cd $TRAVIS_BUILD_DIR
# Clean up the dependencies to only remove the dev packages
rm -rf vendor
composer install --no-interaction --no-dev
if test "$TRAVIS_TAG"; then
PKG_NAME=$TRAVIS_TAG
else
@ -34,6 +30,10 @@ if [ "$TRAVIS" = "true" ]; then
make clean
# Clean up the dependencies to only remove the dev packages
rm -rf vendor
composer install --no-interaction --no-dev
rm -rf env.php config.php
find ./vendor -type d -name ".git" -print0 | xargs rm -rf
find . -type d -name "sass-cache" -print0 | xargs rm -rf