TravisEx
Travis-ci API client library for Elixir
API coverage
- [ ] Accounts
- [ ] Annotations
- [ ] Branches
- [ ] Broadcasts
- [ ] Builds
- [ ] Caches
- [ ] Commits
- [ ] Hooks
- [ ] Jobs
- [ ] Logs
- [ ] Permissions
- [ ] Repository Keys
- [x] Repositories
- [ ] Requests
- [ ] Settings: General
- [ ] Settings: Environment Variables
- [ ] Settings: SSH Key
- [ ] Users
as you can see still a far way to go!
Installation
Add travis_ex to your list of dependencies in
mix.exs:def deps do
[{:travis_ex, "~> 0.0.1"}]end
Ensure travis_ex is started before your application:
def application do
[applications: [:travis_ex]]end
Usage
iex> client = TravisEx.Client.new(auth: "bb1568179c33308f4da7dceab")
iex> %{"repo" => %{"last_build_state" => build_state}} = TravisEx.Repos.get "duksis/travis_ex", client
iex> build_state #=> "passed"License
Released under the MIT license.
Contributing
Start by forking this repo
Then run this command to fetch dependencies and run tests:
MIX_ENV=test mix do deps.get, testPull requests are greatly appreciated