Skip to content

Commit 0e5f626

Browse files
Clement Champetiercchampet
authored andcommitted
Travis: fixed deployment
* Copy external dependencies of boost-regex inside the Travis specific configuration file. * TUTTLEOFX_INSTALL environment variable should exist. * Update condition to trigger deployement.
1 parent ca68882 commit 0e5f626

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ addons:
124124
branch_pattern: coverity_scan
125125

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

129132
deploy:
@@ -133,5 +136,6 @@ deploy:
133136
file: ${TUTTLEOFX_DEPLOY}-${CC}-python-${PYTHON_VERSION}.tgz
134137
skip_cleanup: true
135138
on:
136-
branch: master
139+
tags: true
140+
all_branches: true
137141
condition: ${CC} = "gcc"

tools/travis/deploy.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@ set -e
55
# Print commands and their arguments as they are executed.
66
set -x
77

8-
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
9-
# Fix additionnal dependencies of boost-regex
10-
cp /usr/lib/libicuuc.so.48 ${TUTTLE_INSTALL}/lib
11-
cp /usr/lib/libicui18n.so.48 ${TUTTLE_INSTALL}/lib
12-
cp /usr/lib/libicudata.so.48 ${TUTTLE_INSTALL}/lib
13-
fi
14-
158
# Create archive
169
cd ${TRAVIS_BUILD_DIR}
17-
tar -czf ${TUTTLE_DEPLOY}-${CC}-python-${PYTHON_VERSION}.tgz install-tuttle
10+
tar -czf ${TUTTLEOFX_DEPLOY}-${CC}-python-${PYTHON_VERSION}.tgz install-tuttle

0 commit comments

Comments
 (0)