Skip to content

Commit

Permalink
Add .appveyorrc file generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Wasapl authored Jan 31, 2019
1 parent 59e9f77 commit e910989
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/enable-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,16 @@ if [[ -n "${APPVEYOR_SSH_BLOCK}" ]] && ${APPVEYOR_SSH_BLOCK}; then
# create "lock" file.
touch "${LOCK_FILE}"
echo -e "Build paused. To resume it, open a SSH session to run '${YELLOW}rm "${LOCK_FILE}"${NC}' command."
# export all APPVEYOR_* variables to .appveyorrc file so it could be available to ssh session
export -p|grep -E '^declare -x APPVEYOR_' > $HOME/.appveyorrc
# this might fail if there is multiline values
echo "source $HOME/.appveyorrc" >> $HOME/.profile
# wait until "lock" file is deleted by user.
while [ -f "${LOCK_FILE}" ]; do
sleep 1
done
echo "Build lock file has been deleted. Resuming build."
if [ -f "$HOME/.appveyorrc" ]; then
rm "$HOME/.appveyorrc"
fi
fi

0 comments on commit e910989

Please sign in to comment.