Skip to content

Commit

Permalink
Add Travis config, Test coverage link and Inch config
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmaticivan committed May 6, 2016
1 parent 14944f9 commit a6892c5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: elixir
elixir:
- 1.2.3
otp_release:
- 18.2
sudo: false
env:
- MIX_ENV=test
script: mix coveralls.travis
after_script:
- mix inch.report
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stripe for Elixir [![Hex.pm](https://img.shields.io/hexpm/v/stripity_stripe.svg?maxAge=2592000)](https://hex.pm/packages/stripity_stripe) [![Hex.pm](https://img.shields.io/hexpm/dt/stripity_stripe.svg?maxAge=2592000)](https://hex.pm/packages/stripity_stripe)
====================================================
# Stripe for Elixir [![Hex.pm](https://img.shields.io/hexpm/v/stripity_stripe.svg?maxAge=2592000)](https://hex.pm/packages/stripity_stripe) [![Hex.pm](https://img.shields.io/hexpm/dt/stripity_stripe.svg?maxAge=2592000)](https://hex.pm/packages/stripity_stripe) [![Inline docs](http://inch-ci.org/github/robconery/stripity-stripe.svg)](http://inch-ci.org/github/robconery/stripity-stripe) [![Coverage Status](https://coveralls.io/repos/github/robconery/stripity-stripe/badge.svg?branch=master)](https://coveralls.io/github/robconery/stripity-stripe?branch=master)
---------------------------------------------------------------------------

An Elixir library for working [Stripe](https://stripe.com/).

Expand Down
7 changes: 5 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ defmodule Stripe.Mixfile do
description: "A Stripe Library for Elixir",
package: package,
elixir: "~> 1.1",
test_coverage: [tool: ExCoveralls],
preferred_cli_env: ["coveralls": :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test],
deps: deps(Mix.env) ]
end

Expand All @@ -26,13 +28,14 @@ defmodule Stripe.Mixfile do
deps(:dev)
end


defp deps(:prod) do
[
{:httpoison, "~> 0.8.2" },
{:poison, "~> 1.5 or ~> 2.1.0", optional: true},
{:ex_doc, "~> 0.7", only: :dev},
{:earmark, ">= 0.0.0", only: :dev}
{:earmark, ">= 0.0.0", only: :dev},
{:excoveralls, "~> 0.5.4", only: :test},
{:inch_ex, "~> 0.5.1", only: [:dev, :test]}
]
end

Expand Down
1 change: 1 addition & 0 deletions mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"hackney": {:hex, :hackney, "1.5.7"},
"httpoison": {:hex, :httpoison, "0.8.2"},
"idna": {:hex, :idna, "1.2.0"},
"inch_ex": {:hex, :inch_ex, "0.5.1"},
"jsex": {:hex, :jsex, "2.0.0"},
"json": {:hex, :json, "0.3.2"},
"jsx": {:hex, :jsx, "2.6.2"},
Expand Down

0 comments on commit a6892c5

Please sign in to comment.