Skip to content

Commit

Permalink
Build project on remote machine using bash (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostbuster91 authored and artem-zinnatullin committed Dec 29, 2016
1 parent 02ca177 commit 08d9cc5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mainframer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ rsync --archive --delete --compress-level=$LOCAL_COMPRESS_LEVEL \
--rsh "ssh" ./ "$REMOTE_BUILD_MACHINE:~/$PROJECT_DIR_NAME"

# Build project on a remote machine.
ssh $REMOTE_BUILD_MACHINE \
"set -xe && \
cd ~/$PROJECT_DIR_NAME/ && \
$BUILD_COMMAND"
ssh $REMOTE_BUILD_MACHINE "echo 'set -xe && cd ~/$PROJECT_DIR_NAME/ && $BUILD_COMMAND' | bash"

# Sync project back to local machine.
rsync --archive --delete --compress-level=$REMOTE_COMPRESS_LEVEL \
Expand Down

0 comments on commit 08d9cc5

Please sign in to comment.