Skip to content

Commit

Permalink
Travis: fixed deployment
Browse files Browse the repository at this point in the history
* Copy external dependencies of boost-regex inside the Travis specific
configuration file.
* TUTTLEOFX_INSTALL environment variable should exist.
* Update condition to trigger deployement.
  • Loading branch information
Clement Champetier authored and cchampet committed Mar 8, 2016
1 parent ca68882 commit 0e5f626
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ addons:
branch_pattern: coverity_scan

before_deploy:
# copy external dependencies of boost-regex
- if [ ${TRAVIS_OS_NAME} = "linux" ]; then cp /usr/lib/{libicuuc.so.48,libicui18n.so.48,libicudata.so.48} ${TUTTLEOFX_INSTALL}/lib; fi
# prepare deployment
- tools/travis/deploy.sh

deploy:
Expand All @@ -133,5 +136,6 @@ deploy:
file: ${TUTTLEOFX_DEPLOY}-${CC}-python-${PYTHON_VERSION}.tgz
skip_cleanup: true
on:
branch: master
tags: true
all_branches: true
condition: ${CC} = "gcc"
9 changes: 1 addition & 8 deletions tools/travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ set -e
# Print commands and their arguments as they are executed.
set -x

if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
# Fix additionnal dependencies of boost-regex
cp /usr/lib/libicuuc.so.48 ${TUTTLE_INSTALL}/lib
cp /usr/lib/libicui18n.so.48 ${TUTTLE_INSTALL}/lib
cp /usr/lib/libicudata.so.48 ${TUTTLE_INSTALL}/lib
fi

# Create archive
cd ${TRAVIS_BUILD_DIR}
tar -czf ${TUTTLE_DEPLOY}-${CC}-python-${PYTHON_VERSION}.tgz install-tuttle
tar -czf ${TUTTLEOFX_DEPLOY}-${CC}-python-${PYTHON_VERSION}.tgz install-tuttle

0 comments on commit 0e5f626

Please sign in to comment.