Android & Continuous Integration & HockeyApp
Here is the case. We need build Android application, test it using Continuous Integration. After that we need upload APK to HockeyApp.
The first part is well known.
So, how to upload APK to HockeyApp using command line?
I’ll refer you to HockeyApp API.
To make any interaction with HockeyApp we should have Token.
Here is link for obtaining HockeyApp token: https://rink.hockeyapp.net/manage/auth_tokens
After that we able create script for sending APK like this:
curl \ -F "status=2" \ -F "notify=1" \ -F "notes=NOTES HERE" \ -F "notes_type=0" \ -F "email@example.com" \ -H "X-HockeyAppToken:TOKEN_HERE" \ https://rink.hockeyapp.net/api/2/apps/upload