Skip to content

Commit

Permalink
Merge pull request #21 from sgerbino/enhancement-cpack-deployments
Browse files Browse the repository at this point in the history
Trying to deploy from yet another example...
  • Loading branch information
sgerbino committed Dec 23, 2015
2 parents 59843e7 + fdbcfc2 commit 035d02f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,21 @@ after_success:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cpack -G DEB -C ${CMAKE_BUILD_TYPE}; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cpack -G RPM -C ${CMAKE_BUILD_TYPE}; fi

before_deploy:
- export RELEASE_DEB_FILE=$(ls *.deb)
- export RELEASE_RPM_FILE=$(ls *.rpm)
- echo "Deploying $RELEASE_DEB_FILE and $RELEASE_RPM_FILE to GitHub releases"

deploy:
provider: releases
api-key: "$GITHUB_TOKEN"
file:
- "*.deb"
- "*.rpm"
- "${RELEASE_DEB_FILE}"
- "${RELEASE_RPM_FILE}"
skip_cleanup: true
on:
tags: true
condition: "$CMAKE_BUILD_TYPE=RELEASE && $TRAVIS_OS_NAME=linux && $CC=gcc"
condition:
- "$CMAKE_BUILD_TYPE == RELEASE"
- "$TRAVIS_OS_NAME == linux"
- "$CC == gcc"

0 comments on commit 035d02f

Please sign in to comment.