Skip to content

Commit

Permalink
Modify bundle script to take OS as an argument
Browse files Browse the repository at this point in the history
  • Loading branch information
paf31 committed Oct 23, 2014
1 parent f0bddc8 commit 2ef1bc2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ after_script:
- hpc-coveralls --exclude-dir=tests tests
notifications:
email: true
before_deploy: "./bundle/build.sh"
before_deploy: "./bundle/build.sh linux64"
deploy:
provider: releases
api_key: $RELEASE_KEY
file:
- bundle/*.tar.gz
- bundle/*.sha
- bundle/linux64.tar.gz
- bundle/linux64.sha
skip_cleanup: true
on:
all_branches: true
Expand Down
8 changes: 7 additions & 1 deletion bundle/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ set -e

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

OS=$( uname )
OS=$1

if [ -z $OS ]
then
echo "Usage: build.sh osname"
exit 1
fi

pushd ${SCRIPTPATH} > /dev/null

Expand Down

0 comments on commit 2ef1bc2

Please sign in to comment.