⛓ Here's your serverless solution for sending build status from Travis CI to Discord as webhooks.
If you are looking for a way to get build (success/fail) status reports from Travis CI in Discord, stop looking. You've came to the right place.
I was waiting for the Travis team for a long time to integrate Discord Webhook support to their build notifications, but they don't seem to be doing anything about that. So I made these script to just do the same.
No need to wait for them to add Discord Webhook Integration, rest aside and just follow the guide below and stay notified of your build status.
Create a webhook in your Discord Server (Guide).
Copy the Webhook URL.
Go to your repository settings (for which you want status notifications)
in Travis CI and add an environment variable called WEBHOOK_URL
and paste
the Webhook URL you got in the previous step. You can also specify
multiple webhook addresses at once, separating each with a whitespace
character, such as space.
Add these lines to the .travis.yml
file of your repository.
after_success:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL
Grab your coffee ☕ and enjoy! And, if you liked this, please ⭐Star this repository to show your love.
This project exists thanks to all the people who contribute.
Thank you to all our backers! 🙏 [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]