removing superfluous files

This commit is contained in:
Nabeel Shahzad
2017-12-13 17:31:58 -06:00
parent 322ea12674
commit 75a77fe471

View File

@@ -9,10 +9,12 @@ fi
echo $PKG_NAME
if [ "$TRAVIS" = "true" ]; then
echo "Runnign on travis"
rm -rf .git deploy_rsa.enc .idea phpvms.iml .travis .dpl
find . -type d -name ".git" -delete
# delete all superfluous files
rm -rf .git deploy_rsa.enc .idea phpvms.iml .travis .dpl
find . -type d -name ".git" | xargs rm -rf
# tar and upload
tar -czf $PKG_NAME.tar.gz -C $TRAVIS_BUILD_DIR phpvms
rsync -r --delete-after --quiet $PKG_NAME.tar.gz downloads@phpvms.net:/var/www/downloads/
fi