removing superfluous files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user