forked from aviabird/gringotts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
104 lines (94 loc) · 2.52 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
97
98
99
100
101
102
103
104
defmodule Gringotts.Mixfile do
use Mix.Project
def project do
[
app: :gringotts,
version: "1.1.1",
description: description(),
package: [
contributors: ["Aviabird Technologies"],
maintainers: ["Pankaj Rawat"],
licenses: ["MIT"],
links: %{github: "https://github.com/aviabird/gringotts"}
],
elixir: "~> 1.14",
test_coverage: [
tool: ExCoveralls
],
elixirc_paths: elixirc_paths(Mix.env()),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.json": :test,
"coveralls.html": :test,
vcr: :test,
"vcr.delete": :test,
"vcr.check": :test,
"vcr.show": :test
],
deps: deps(),
docs: docs()
]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[
extra_applications: [:httpoison, :hackney, :elixir_xml_to_map, :timex, :xml_builder, :eex]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# 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
[
{:httpoison, "~> 1.8"},
{:jason, "~> 1.4"},
{:xml_builder, "~> 2.2"},
{:elixir_xml_to_map, "~> 3.0"},
# money related
{:decimal, "~> 2.0"},
# docs and tests
{:ex_doc, "~> 0.28.4", only: :dev, runtime: false},
{:mock, "~> 0.3.7", only: :test},
{:bypass, "~> 2.1", only: :test},
{:excoveralls, "~> 0.14.5", only: :test},
{:exvcr, "~> 0.13.3", only: :test},
# various analyses tools
{:credo, "~> 1.6", only: [:dev, :test]},
{:inch_ex, "~> 2.0", only: :docs},
{:dialyxir, "~> 1.1", only: :dev},
{:timex, "~> 3.7"}
]
end
defp description do
"""
Gringotts is a payment processing library in Elixir integrating
various payment gateways, and draws motivation from 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