Skip to content

Commit

Permalink
Remove unused build files on DO (#2863)
Browse files Browse the repository at this point in the history
  • Loading branch information
oktomus authored May 10, 2020
1 parent 12456dd commit 72d14dc
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions scripts/travis/deploy-linux-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,21 @@ echo "Deploy travis build on the server..."
# Add server public key to known hosts.
echo $DEPLOY_SSH_KEY >> $HOME/.ssh/known_hosts

# Send build to server.
# Remove previous build from server.
export SSHPASS=$DEPLOY_PASSWORD
sshpass -e ssh $DEPLOY_USER@$DEPLOY_URL rm -rf $DEPLOY_FOLDER

# Send new build to the server.
sshpass -e rsync \
--recursive \
--archive \
--compress \
--stats \
--no-perms --no-owner --no-group \
--include="build_report.txt" \
--include="sanbox/" \
--include="scripts/" \
--include="prebuilt-linux-deps/" \
--delete-after \
./ \
build_report.txt \
prebuilt-linux-deps \
sandbox \
scripts \
$DEPLOY_USER@$DEPLOY_URL:$DEPLOY_FOLDER

echo "travis_fold:end:deploy"
Expand Down

0 comments on commit 72d14dc

Please sign in to comment.