Skip to content

Commit 2ef1bc2

Browse files
committed
Modify bundle script to take OS as an argument
1 parent f0bddc8 commit 2ef1bc2

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ after_script:
77
- hpc-coveralls --exclude-dir=tests tests
88
notifications:
99
email: true
10-
before_deploy: "./bundle/build.sh"
10+
before_deploy: "./bundle/build.sh linux64"
1111
deploy:
1212
provider: releases
1313
api_key: $RELEASE_KEY
1414
file:
15-
- bundle/*.tar.gz
16-
- bundle/*.sha
15+
- bundle/linux64.tar.gz
16+
- bundle/linux64.sha
1717
skip_cleanup: true
1818
on:
1919
all_branches: true

bundle/build.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ set -e
22

33
SCRIPTPATH=$( cd "$(dirname "$0")" ; pwd -P )
44

5-
OS=$( uname )
5+
OS=$1
6+
7+
if [ -z $OS ]
8+
then
9+
echo "Usage: build.sh osname"
10+
exit 1
11+
fi
612

713
pushd ${SCRIPTPATH} > /dev/null
814

0 commit comments

Comments
 (0)