forked from aviabird/gringotts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
96 lines (87 loc) · 2.32 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
89
90
91
92
93
94
95
96
defmodule Gringotts.Mixfile do
use Mix.Project
def project do
[
app: :gringotts,
version: "1.0.2",
description: description(),
package: [
contributors: ["Aviabird Technologies"],
maintainers: ["Pankaj Rawat"],
licenses: ["MIT"],
links: %{github: "https://github.com/aviabird/gringotts"}
],
elixir: ">= 1.3.0",
test_coverage: [
tool: ExCoveralls
],
preferred_cli_env: [
"coveralls": :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.travis": :test
],
deps: deps(),
docs: docs()]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[
applications: [:httpoison, :hackney, :elixir_xml_to_map, :timex],
]
end
# Dependencies can be hex.pm packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1"}
#
# Type `mix help deps` for more examples and options
defp deps do
[
{:poison, "~> 3.1.0"},
{:httpoison, "~> 0.13"},
{:xml_builder, "~> 2.1"},
{:elixir_xml_to_map, "~> 0.1"},
# Money related
{:decimal, "~> 1.0", optional: true},
# ex_money is just needed for tests.
{:ex_money, "~> 1.1.0", only: [:dev, :test], optional: true},
# docs and tests
{:ex_doc, "~> 0.18", only: :dev, runtime: false},
{:mock, "~> 0.3.0", only: :test},
{:bypass, "~> 0.8", only: :test},
{:excoveralls, "~> 0.8", only: :test},
# various analyses tools
{:credo, "~> 0.3", only: [:dev, :test]},
{:inch_ex, "~> 0.5", only: :docs},
{:dialyxir, "~> 0.3", only: :dev},
{:timex, "~> 3.2"}
]
end
defp description do
"""
Gringotts is a payment processing library in Elixir integrating
various payment gateways, this draws motivation for shopify's
activemerchant ruby gem.
"""
end
defp docs do
[
main: "Gringotts",
logo: "images/lg.png",
source_url: "https://github.com/aviabird/gringotts",
groups_for_modules: groups_for_modules()
]
end
defp groups_for_modules do
[
"Gateways": ~r/^Gringotts.Gateways.?/,
]
end
end