notifybot3

Slack Notifications for Travis Deploys


Keywords
travis, deployment, slack, notification
License
MIT
Install
pip install notifybot3==0.0.5

Documentation

NOTE: Forked to make package compatible with Python3

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