Simple Elixir wrapper for the Travis API
Latest commit e69e86b Jan 5, 2017 @kddeisz kddeisz committed on GitHub Merge pull request #1 from localytics/fixing-travis
Attempting to fix the travis env vars


Build Status

Simple Elixir wrapper for the Travis API.


First, add travis to your mix.exs dependencies:

def deps do
  [{:travis, "~> 0.0.1"}]

Ensure that travis is added as an application in your mix.exs:

def application do
  [applications: [:travis]]

Fetching dependencies and running on elixir console:

mix deps.get
iex -S mix


Every call to Travis needs a client. It can optionally have a travis token associated with it, which is necessary for private repositories. If you don't provide one a client is created. Below are some examples:

Describe a public repo

iex>"elixir-lang", "elixir")
%{"repo" => %{...}}

Describe a private repo

iex> client =
%Travis.Client{endpoint: "",
 token: "..."}

iex>"localytics", "travis.ex", client)
%{"repo" => %{...}}

List builds for a repo

iex> Travis.Repos.Builds.list("elixir-lang", "elixir")
%{"builds" => [...]}


Bug reports and pull requests are welcome on GitHub at