OLD | NEW |
| (Empty) |
1 #!/bin/sh | |
2 | |
3 set -x | |
4 | |
5 IPA_FILE=$1 | |
6 DSYM_FILE=$2 | |
7 | |
8 # HockeyApp UPLOAD token | |
9 # master = Eyeo Release | |
10 # release = Eyeo Devbuild | |
11 # *) = Salsita Development | |
12 case $CIRCLE_BRANCH in | |
13 master) HOCKEY_TOKEN=c41de0ea5d2a45c6802653918aa48fe8;; | |
14 release) HOCKEY_TOKEN=a8f36549a4184f098b891afb5a6e1758;; | |
15 *) HOCKEY_TOKEN=043705a1045e41e09df456383bedc51e;; | |
16 esac | |
17 | |
18 echo "Branch '${CIRCLE_BRANCH}', Hockey Upload Token ${HOCKEY_TOKEN}" | |
19 | |
20 CURL=curl | |
21 API_ENDPOINT=https://rink.hockeyapp.net/api/2/apps/upload | |
22 | |
23 # Note on "strategy" parameter. | |
24 # "add" is a default value but it's being set explicitly as a reminder of verify
ing | |
25 # https://www.pivotaltracker.com/story/show/128064665 | |
26 # "replace" was there previously due to | |
27 # https://www.pivotaltracker.com/story/show/127067897 | |
28 # which shouldn't be needed anymore | |
29 STRATEGY=add | |
30 | |
31 $CURL $API_ENDPOINT \ | |
32 -H "X-HockeyAppToken: ${HOCKEY_TOKEN}" \ | |
33 -F ipa="@${IPA_FILE}" \ | |
34 -F dsym="@${DSYM_FILE}" \ | |
35 -F tags="${CIRCLE_BRANCH}" \ | |
36 -F strategy="${STRATEGY}" | |
OLD | NEW |