Simple instruction that show you how to add HipChat support for your app so that it will post to a room of your choice, preferably one for the application in question. Both require an API token which you can get from Niklas. v2 of the HipChat API lets you use your own tokens, but I couldn't get that working intially.
You can optionally use secure tokens in your travis.yml file. It requires you to install the travis command line tool:
$ gem install travis
If you aleady have a travis.yml file (I assume you have), and run this command in the same dir:
$ travis encrypt <API token>@<room name> --add notifications.hipchat.rooms
It will prepopulate your travis.yml file with the correct information. You manually add it like so:
notifications:
hipchat:
rooms:
secure: somesecuretokenstring
template:
- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
You need to add the hipchat gem to you GemFile in the development section
gem 'hipchat'
to you deploy.rb file you add:
set :hipchat_token, "<API token>"
set :hipchat_room_name, "room name"
set :hipchat_announce, true
Simple. Now when you deploy you should see the notification in the room you chose. As you can see the Capistrano setup does not use a secure token. You could store the API key in a yml file that is not in source control and load it manually.