Skip to content

Commit

Permalink
try #2 for the deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
rgetz committed Feb 7, 2017
1 parent 492d912 commit 498b02c
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions CI/travis/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,24 @@ echo attemting to deploy $1 to $2
echo and latest_libiio${LDIST}$3
ssh -V

cat <<EOT > script$3
cd ${DEPLOY_TO}
EOT
echo "cd ${DEPLOY_TO}" > script$3
if curl -m 10 -s -I -f -o /dev/null http://swdownloads.analog.com/cse/travis_builds/${TO} ; then
echo "rm ${TO}" >> script$3
fi

cat <<EOT >> test$3
put ${FROM} ${TO}
ls -l ${TO}
EOT
echo "put ${FROM} ${TO}" >> script$3
echo "ls -l ${TO}" >> script$3

if curl -m 10 -s -I -f -o /dev/null http://swdownloads.analog.com/cse/travis_builds/${LATE} ; then
echo "rm ${LATE}" >> script$3
fi

cat <<EOT >> script$3
symlink ${TO} ${LATE}
ls -l ${LATE}
bye
EOT
echo "symlink ${TO} ${LATE}" >> script$3
echo "ls -l ${LATE}" >> script$3
echo "bye" >> script$3

sftp ${EXTRA_SSH} -b script$3 ${SSHUSER}@${SSHHOST}
cat script$3
#sftp ${EXTRA_SSH} -b script$3 ${SSHUSER}@${SSHHOST}
`
# there is some issue with the travis-ci / OSX implmentation - this
# doesn't work on that platform, so we just copy it above, vs linking it
Expand Down

0 comments on commit 498b02c

Please sign in to comment.