forked from beam-community/stripity-stripe
-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
88 lines (80 loc) · 2.15 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
defmodule Stripe.Mixfile do
use Mix.Project
def project do
[
app: :stripity_stripe,
deps: deps(),
description: description(),
dialyzer: [
plt_add_apps: [:mix],
plt_file: {:no_warn, "priv/plts/stripity_stripe.plt"}
],
elixir: "~> 1.5",
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
test_coverage: [tool: ExCoveralls],
version: "2.2.1",
source_url: "https://github.com/code-corps/stripity_stripe/"
]
end
# Configuration for the OTP application
def application do
[
applications: apps(Mix.env()),
env: env(),
mod: {Stripe, []}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp env() do
[
api_base_url: "https://api.stripe.com/v1/",
api_upload_url: "https://files.stripe.com/v1/",
pool_options: [
timeout: 5_000,
max_connections: 10
],
use_connection_pool: true
]
end
defp apps(:test), do: [:bypass | apps()]
defp apps(_), do: apps()
defp apps(), do: [:hackney, :logger, :poison, :uri_query]
defp deps do
[
{:bypass, "~> 1.0", only: :test},
{:dialyxir, "1.0.0-rc.6", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.20", only: :dev},
{:excoveralls, "~> 0.8.1", only: :test},
{:hackney, "~> 1.13"},
{:inch_ex, "~> 2.0", only: [:dev, :test]},
{:mox, "~> 0.5", only: :test},
{:poison, ">= 3.0.0"},
{:uri_query, "~> 0.1.2"},
{:exexec, "~> 0.1.0", only: :test}
]
end
defp description do
"""
A Stripe client for Elixir.
"""
end
defp package do
[
files: ["lib", "LICENSE*", "mix.exs", "README*"],
licenses: ["New BSD"],
links: %{
"GitHub" => "https://github.com/code-corps/stripity_stripe"
},
maintainers: ["Dan Matthews", "Josh Smith", "Nikola Begedin", "Scott Newcomer"]
]
end
end