Skip to content

Instantly share code, notes, and snippets.

@johndagostino
Last active August 29, 2015 14:07
Show Gist options
  • Save johndagostino/9e3e5d26ee165b02030f to your computer and use it in GitHub Desktop.
Save johndagostino/9e3e5d26ee165b02030f to your computer and use it in GitHub Desktop.
Buildbox Project Notifications
# install https://github.com/hipchat/hipchat-cli in /usr/local/bin
echo '--- running specs'
if bundle exec rspec; then
echo "[Successful] $BUILDBOX_PROJECT_SLUG - Build - $BUILDBOX_BUILD_URL - Commit - $REVISION" | hipchat_room_message -t $HIPCHAT_TOKEN -r $HIPCHAT_ROOM -f "Buildbox" -c "green"
else
echo "[Failed] $BUILDBOX_PROJECT_SLUG - Build - $BUILDBOX_BUILD_URL - Commit - $REVISION" | hipchat_room_message -t $HIPCHAT_TOKEN -r $HIPCHAT_ROOM -f "Buildbox" -c "red"
exit 1;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment