notifybot

Slack Notifications for Travis Deploys


Keywords
travis, deployment, slack, notification, ci, notifications, python, travis-ci
License
MIT
Install
pip install notifybot==0.0.4

Documentation

deploybot

Overview

  • Install and execute this CLI from within your Travis jobs to notify a Slack channel on deployment events.
  • Note: It only works from within Travis jobs, as it reads from the provided Convenience Variables

Example Travis YAML

Be sure to encrypt your token or webhook URL

$ gem install travis
$ travis encrypt SLACK_TOKEN=yourtoken --add
$ travis encrypt SLACK_WEBHOOK=yourwebhook --add

Use a legacy API token

after_deploy:
  - pip install notifybot && notifybot -t $SLACK_TOKEN -c your-slack-channel

Use an incoming webhook URL

after_deploy:
  - pip install notifybot && notifybot -w $SLACK_WEBHOOK -c your-slack-channel

Related docs