webhooks/travis: Migrate docs to markdown.

This commit is contained in:
Rohitt Vashishtha
2017-06-06 19:54:07 +05:30
committed by Tim Abbott
parent 24b1efc74e
commit 5a3a41a644
2 changed files with 22 additions and 36 deletions

View File

@@ -1,36 +0,0 @@
<p>See your Travis CI build notifications in Zulip!</p>
<p>
First, create the stream you'd like to use for notifications, and subscribe
all interested parties to this stream. We recommend the name <code>travis</code>.
</p>
<p>
Next, set up a bot for the integration. You'll need the bot's API key
to construct a URL for Travis CI.
</p>
<p>
Finally, set up a webhook in your <code>.travis.yml</code> file:
</p>
<pre>
notifications:
webhooks:
- {{ external_api_uri_subdomain }}/v1/external/travis?stream=travis&amp;topic=build-status&amp;api_key=abcdefgh
</pre>
<p>
By default, pull request events are ignored since most people
don't want notifications for new pushes to pull requests. To
enable notifications for pull request builds, just
add<code>&ignore_pull_requests=false</code> at the end of the url.
</p>
<p><b>
Congratulations! You're done!</b><br/> When a code build occurs,
you're receive a notification on the specified stream and topic.
</p>
<img class="screenshot" src="/static/images/integrations/travis/001.png"/>

View File

@@ -0,0 +1,22 @@
See your Travis CI build notifications in Zulip!
{!create-stream.md!}
{!create-bot-construct-url.md!}
Finally, set up a webhook in your `.travis.yml` file:
```
notifications:
webhooks:
- {{ external_api_uri_subdomain }}/v1/external/travis?stream=travis&amp;topic=build-status&amp;api_key=abcdefgh
```
By default, pull request events are ignored since most people
don't want notifications for new pushes to pull requests. To
enable notifications for pull request builds, just
add `&ignore_pull_requests=false` at the end of the url.
{!congrats.md!}
![](/static/images/integrations/travis/001.png)