The call should probably go in the after_script section of .travis.yml and look something like this:
curl -i -X POST -H 'Content-Type: application/json' \
-d "$(jo channel=general-internal-chat username=travis-ci icon_url=https://travis-ci.com/images/logos/TravisCI-Mascot-1.png text="## This is a test\nThis is only a test")" \
https://mm.example.org/hooks/XXXXXXXX
The call should probably go in the
after_script
section of.travis.yml
and look something like this:This is also worth considering: https://github.com/chatnhook/chatnhook