Skip to content

Commit

Permalink
try #2 : travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rgetz committed Jan 10, 2017
1 parent 5a3f1c5 commit cafcd21
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ script:
- cd $TRAVIS_BUILD_DIR/build
- cmake ..
- make
- make package
- sudo make package
notifications:
email:
on_success: change
Expand All @@ -102,6 +102,7 @@ before_deploy:
- export TARGET_TGZ=$(echo ${RELEASE_PKG_FILE_TGZ} | sed 's:.tar.gz$::')${LDIST}.tar.gz;
- export RELEASE_PKG_FILE_PKG=$(ls *.pkg)
- export TARGET_PKG=$(echo ${RELEASE_PKG_FILE_PKG} | sed 's:.pkg$::')${LDIST}.pkg
- ls -l ${RELEASE_PKG_FILE_DEB} ${RELEASE_PKG_FILE_RPM} ${RELEASE_PKG_FILE_TGZ} ${RELEASE_PKG_FILE_PKG}
- echo "deploying $RELEASE_PKG_FILE_DEB to $TARGET_DEB, $RELEASE_PKG_FILE_RPM to $TARGET_RPM, $RELEASE_PKG_FILE_TGZ to $TARGET_TGZ, $RELEASE_PKG_FILE_PKG to $TARGET_PKG to GitHub releases"
- openssl aes-256-cbc -K $encrypted_48a720578612_key -iv $encrypted_48a720578612_iv -in ${TRAVIS_BUILD_DIR}/deploy.rsa.enc -out /tmp/deploy.rsa -d
- eval "$(ssh-agent -s)"
Expand All @@ -119,19 +120,18 @@ deploy:
on:
repo: analogdevicesinc/libiio
tags: true
condition: "$CC = gcc"
condition: "$TRAVIS_OS_NAME = linux"
condition: "($CC = gcc) && ($TRAVIS_OS_NAME = linux)"
- provider: script
skip_cleanup: true
script:
- >-
scp ${RELEASE_PKG_FILE_DEB} ${SSHUSER}@${SSHHOST}:${DEPLOY_TO}/${TARGET_DEB};
scp ${RELEASE_PKG_FILE_RPM} ${SSHUSER}@${SSHHOST}:${DEPLOY_TO}/${TARGET_RPM};
scp ${RELEASE_PKG_FILE_TGZ} ${SSHUSER}@${SSHHOST}:${DEPLOY_TO}/${TARGET_TGZ};
ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "rm ${DEPLOY_TO}/latest_libiio${LDIST}.deb";
ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "ln ${DEPLOY_TO}/${TARGET_DEB} ${DEPLOY_TO}/latest_libiio${LDIST}.deb";
scp ${RELEASE_PKG_FILE_RPM} ${SSHUSER}@${SSHHOST}:${DEPLOY_TO}/${TARGET_RPM};
ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "rm ${DEPLOY_TO}/latest_libiio${LDIST}.rpm";
ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "ln ${DEPLOY_TO}/${TARGET_RPM} ${DEPLOY_TO}/latest_libiio${LDIST}.rpm";
scp ${RELEASE_PKG_FILE_TGZ} ${SSHUSER}@${SSHHOST}:${DEPLOY_TO}/${TARGET_TGZ};
ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "rm ${DEPLOY_TO}/latest_libiio${LDIST}.tar.gz";
ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "ln ${DEPLOY_TO}/${TARGET_TGZ} ${DEPLOY_TO}/latest_libiio${LDIST}.tar.gz";
for files in $(ssh ${EXTRA_SSH} ${SSHUSER}@${SSHHOST} "ls -lt ${DEPLOY_TO}/*${LDIST}.deb" | tail -n +10 | awk '{print $NF}');
Expand Down

0 comments on commit cafcd21

Please sign in to comment.