Modify bundle script to take OS as an argument
commit2ef1bc24b63f2e63fea4b2732f3ec9041f59bc7d
authorPhil Freeman <paf31@cantab.net>
dateThu 23 Oct 2014, 12:13 (12 years ago)
parentf0bddc8
.travis.yml+3−3
@@ -7,13 +7,13 @@ after_script:
77 - hpc-coveralls --exclude-dir=tests tests
88notifications:
99 email: true
10−before_deploy: "./bundle/build.sh"
10+before_deploy: "./bundle/build.sh linux64"
1111deploy:
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+7−1
@@ -2,7 +2,13 @@ set -e
22
33SCRIPTPATH=$( 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
713pushd ${SCRIPTPATH} > /dev/null
814