Skip to content

Instantly share code, notes, and snippets.

@Keishake
Last active August 29, 2015 13:56
Show Gist options
  • Save Keishake/8894107 to your computer and use it in GitHub Desktop.
Save Keishake/8894107 to your computer and use it in GitHub Desktop.
#! /bin/bash
# you need install shenzhen
# `gem install shenzhen`
#
API_TOKEN="TESTFLIGHT_APITOKEN_HERE"
TEAM_TOKEN="TESTFLIGHT_TEAMTOKEN_HERE"
TEAM_NAME="TESTFLIGHT_TEAM_NAME"
HIPCHAT_TOKEN="HIPCHAT_API_TOKEN_HERE"
HIPCHAT_ROOM_ID="HIPCHAT_ROOM_ID_HERE"
ipa build -c Release && ipa distribute:testflight -a $API_TOKEN -T $TEAM_TOKEN -m "Manbo!!" --notify -l $TEAM_NAME
curl -d "room_id=$HIPCHAT_ROOM_ID&from=iPhoneBuild&message=Build+Status:+Passing&color=green" https://api.hipchat.com/v1/rooms/message?auth_token=$HIPCHAT_TOKEN&format=json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment