git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Modify bundle script to take OS as an argument
2ef1bc2Phil Freeman
.travis.yml+3−3
@@ -7,13 +7,13 @@ after_script:
7 - hpc-coveralls --exclude-dir=tests tests
7 - hpc-coveralls --exclude-dir=tests tests
8notifications:
8notifications:
9 email: true
9 email: true
10−before_deploy: "./bundle/build.sh"
10+before_deploy: "./bundle/build.sh linux64"
11deploy:
11deploy:
12 provider: releases
12 provider: releases
13 api_key: $RELEASE_KEY
13 api_key: $RELEASE_KEY
14 file:
14 file:
15− - bundle/*.tar.gz
15+ - bundle/linux64.tar.gz
16− - bundle/*.sha
16+ - bundle/linux64.sha
17 skip_cleanup: true
17 skip_cleanup: true
18 on:
18 on:
19 all_branches: true
19 all_branches: true
bundle/build.sh+7−1
@@ -2,7 +2,13 @@ set -e
2
2
3SCRIPTPATH=$( cd "$(dirname "$0")" ; pwd -P )
3SCRIPTPATH=$( cd "$(dirname "$0")" ; pwd -P )
4
4
5−OS=$( uname )
5+OS=$1
6+
7+if [ -z $OS ]
8+then
9+ echo "Usage: build.sh osname"
10+ exit 1
11+fi
6
12
7pushd ${SCRIPTPATH} > /dev/null
13pushd ${SCRIPTPATH} > /dev/null
8
14