https://github.com/doerge/xcode-slack-notifier
Notifies you on Slack when your build is completed.
https://github.com/doerge/xcode-slack-notifier
Last synced: 13 days ago
JSON representation
Notifies you on Slack when your build is completed.
- Host: GitHub
- URL: https://github.com/doerge/xcode-slack-notifier
- Owner: Doerge
- License: mit
- Created: 2016-10-19T16:00:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-24T15:53:50.000Z (over 8 years ago)
- Last Synced: 2025-04-02T12:49:24.553Z (3 months ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xcode-slack-notifier
Hit the coffee machine while Xcode builds, and get a notification on Slack when it completes!
# Slack Setup
* Setup an _incoming webhook_ to a private channel with yourself [here](https://dubsmash.slack.com/apps/A0F7XDUAZ-incoming-webhooks). If you do not have the rights yourself you have to request it. Someone on your team with Slack admin rights will then have to grant you access.
* Copy the webhook url.
# Local Setup
## Scripts
We will generate two scripts: `notify_build_succeeded.sh` and `notify_build_failed.sh` which Xcode can use to notify us. With the custom webhook url from above execute:
```
git clone [email protected]:Doerge/xcode-slack-notifier.git
cd xcode-slack-notifier
./replace_webhook_url.sh
```
Either put the generated scripts in your favorite scripts directory or keep the repo around.## Xcode
Go to Xcode preferences (`Cmd` + `,`) `Behaviors/Succeeds/Run/Choose Script` and point it to the `notify_build_succeeded.sh` script which was generated above. Repeat for `Behaviors/Failed/Run/Choose Script` and `notify_build_failed.sh`.
Enjoy Xcode notifications on the go!