diff --git a/.travis.yml b/.travis.yml index db18e5092..7d3802bdd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -120,14 +120,19 @@ deploy: condition: "$TRAVIS_OS_NAME = linux" - provider: script skip_cleanup: true - script: scp ${RELEASE_PKG_FILE_DEB} ${SSHUSER}@${SSHHOST}:${DEPLOY_TO}/${RELEASE_PKG_FILE_DEB}${TPRECISE} ; ssh ${SSHUSER}@${SSHHOST} "rm ${DEPLOY_TO}/latest_libiio${TPRECISE}.deb"; ssh ${SSHUSER}@${SSHHOST} "ln ${DEPLOY_TO}/${RELEASE_PKG_FILE_DEB}${TPRECISE} ${DEPLOY_TO}/latest_libiio${TPRECISE}.deb"; scp ${RELEASE_PKG_FILE_RPM} ${SSHUSER}@${SSHHOST}:${DEPLOY_TO}/${RELEASE_PKG_FILE_RPM}${TPRECISE} ; ssh ${SSHUSER}@${SSHHOST} "rm ${DEPLOY_TO}/latest_libiio${TPRECISE}.rpm"; ssh ${SSHUSER}@${SSHHOST} "ln ${DEPLOY_TO}/${RELEASE_PKG_FILE_RPM}${TPRECISE} ${DEPLOY_TO}/latest_libiio${TPRECISE}.rpm"; + script: + scp ${RELEASE_PKG_FILE_DEB} ${SSHUSER}@${SSHHOST}:${DEPLOY_TO}/${RELEASE_PKG_FILE_DEB}${TPRECISE} ; ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "rm ${DEPLOY_TO}/latest_libiio${TPRECISE}.deb"; ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "ln ${DEPLOY_TO}/${RELEASE_PKG_FILE_DEB}${TPRECISE} ${DEPLOY_TO}/latest_libiio${TPRECISE}.deb"; scp ${RELEASE_PKG_FILE_RPM} ${SSHUSER}@${SSHHOST}:${DEPLOY_TO}/${RELEASE_PKG_FILE_RPM}${TPRECISE} ; ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "rm ${DEPLOY_TO}/latest_libiio${TPRECISE}.rpm"; ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "ln ${DEPLOY_TO}/${RELEASE_PKG_FILE_RPM}${TPRECISE} ${DEPLOY_TO}/latest_libiio${TPRECISE}.rpm"; for files in $(ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "ls -lt /336936/cse/travis_builds/*.deb" | tail -n +10 | awk '{print $NF}') ; do ssh ${EXTRA_SSH} ${RELEASE_PKG_FILE_DEB} ${SSHUSER}@${SSHHOST} "rm /336936/cse/travis_builds/${files}"; done ; for files in $(ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "ls -lt /336936/cse/travis_builds/*.rpm" | tail -n +10 | awk '{print $NF}') ; do ssh ${EXTRA_SSH} ${RELEASE_PKG_FILE_DEB} ${SSHUSER}@${SSHHOST} "rm /336936/cse/travis_builds/${files}"; done ; on: condition: "$CC = gcc" condition: "$TRAVIS_OS_NAME = linux" branch: travis-ci - provider: script skip_cleanup: true - script: scp ${EXTRA_SSH} ${RELEASE_PKG_FILE_PKG} ${SSHUSER}@${SSHHOST}:${DEPLOY_TO}/${RELEASE_PKG_FILE_PKG}${OSX_VER} ; ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "rm ${DEPLOY_TO}/latest_libiio${OSX_VER}.pkg"; ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "ln ${DEPLOY_TO}/${RELEASE_PKG_FILE_PKG}${OSX_VER} ${DEPLOY_TO}/latest_libiio${OSX_VER}.pkg"; + script: + - | + scp ${EXTRA_SSH} ${RELEASE_PKG_FILE_PKG} ${SSHUSER}@${SSHHOST}:${DEPLOY_TO}/${RELEASE_PKG_FILE_PKG}${OSX_VER} + ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "rm ${DEPLOY_TO}/latest_libiio${OSX_VER}.pkg" + ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "ln ${DEPLOY_TO}/${RELEASE_PKG_FILE_PKG}${OSX_VER} ${DEPLOY_TO}/latest_libiio${OSX_VER}.pkg" on: condition: "$CC = gcc" condition: "$TRAVIS_OS_NAME = osx"