- Go to the slack website and add a new Travis CI integration.
- Slack will provide a snippet of configuration for your .travis.yml file:
notifications:
slack: <account>:<token>
- If you want to host the source code of your application to public repositories the best practice is to encrypt the pair <account>:<token> with the Travis CI CLI:
$ travis encrypt "<account>:<token>" --add notifications.slack