Skip to content

Commit 5a3e4ae

Browse files
author
Clement Champetier
committed
Travis: add deploy.sh script tool
Issue #441
1 parent ff7e55b commit 5a3e4ae

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.travis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,7 @@ addons:
117117
branch_pattern: coverity_scan
118118

119119
before_deploy:
120-
# Fix additionnal dependencies of boost-regex
121-
- cp /usr/lib/libicuuc.so.48 ${TUTTLE_INSTALL}/lib
122-
- cp /usr/lib/libicui18n.so.48 ${TUTTLE_INSTALL}/lib
123-
# create archive
124-
- cd ${TRAVIS_BUILD_DIR}
125-
- tar -czf tuttle-${_system_name}-${_system_version}-${_system_arch}-${CC}.tgz install-tuttle
120+
- tools/travis/deploy.sh
126121

127122
deploy:
128123
provider: releases

tools/travis/deploy.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
# Exit immediately if a command exits with a non-zero status
4+
set -e
5+
# Print commands and their arguments as they are executed.
6+
set -x
7+
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+
fi
13+
14+
# Create archive
15+
cd ${TRAVIS_BUILD_DIR}
16+
tar -czf tuttle-${_system_name}-${_system_version}-${_system_arch}-${CC}.tgz install-tuttle

0 commit comments

Comments
 (0)