• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kittoframework / kitto / 183
87%
master: 89%

Build:
Build:
LAST BUILD BRANCH: v0.9.2
DEFAULT BRANCH: master
Ran 22 Nov 2016 05:10AM UTC
Jobs 1
Files 16
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
183

push

travis-ci

davejlong
Add webhook support

Webhooks are enabled through the `/hooks` route. Building hooks, similar
to jobs, is as easy as putting a file in the `hooks/` directory in a
Kitto project. The Hook API is very simple and similar to the
`Plug.Route` DSL building routes:

```elixir
use Kitto.Hooks.DSL

hook :github do
  {:ok, body, _} = read_body conn
  commits = GitHub.parse_commits_from_hook(body)
  broadcast! :github_commits, %{commits: commits}
end
```

The hook above generates a route at `/hooks/github` listening on all
HTTP methods. Hooks include both the `conn` object that routes include
as well as `broadcast!/2` to broadcast events to dashboards.

175 of 211 relevant lines covered (82.94%)

8.11 hits per line

Jobs
ID Job ID Ran Files Coverage
1 183.1 22 Nov 2016 05:10AM UTC 0
82.94
Travis Job 183.1
Source Files on build 183
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #183
  • e96becea on github
  • Prev Build on hooks (#181)
  • Next Build on hooks (#185)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc