Skip to content

Commit

Permalink
travis - clean old binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
rgetz committed Dec 28, 2016
1 parent 483205a commit d3a58e4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d3a58e4

Please sign in to comment.