Skip to content

Commit

Permalink
allow Travis to upload ALL branches to bintray
Browse files Browse the repository at this point in the history
I would like my personal travis to upload all my personal branches to my personal bintray.
To accomplish this, if the Travis environment variable $APPIMAGE_UPLOAD_BRANCHES is set to the specific string "ALL", then the command "./build/travis/job2_AppImage/build.sh --upload-branches $APPIMAGE_UPLOAD_BRANCHES" will upload all branches.
  • Loading branch information
Eric Fontaine committed Mar 10, 2016
1 parent d5a97ff commit bbb3ee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/travis/job2_AppImage/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ case "$1" in
esac

# Should the AppImage be uploaded?
if [ "$1" == "--upload-branches" ]; then
# User passed in list of branchs so only upload those listed
if [ "$1" == "--upload-branches" ] && [ "$2" ]; then
# User passed in a list of one or more branches so only upload those listed
shift
for upload_branch in "$@" ; do
[ "$branch" == "$upload_branch" ] && upload=true || true # bypass `set -e`
Expand Down

0 comments on commit bbb3ee3

Please sign in to comment.