-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
111 lines (102 loc) · 3.12 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
105
106
107
108
109
110
111
defmodule Tipalti.MixProject do
use Mix.Project
@version "0.10.0"
def project do
[
app: :tipalti,
source_url: "https://github.com/peek-travel/tipalti-elixir",
version: @version,
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
package: package(),
deps: deps(),
docs: docs(),
dialyzer: dialyzer(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.json": :test
]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :xmerl]
]
end
defp description do
"""
Tipalti integration library for Elixir, including Payee and Payer SOAP API clients and iFrame integration helpers.
"""
end
defp package do
[
files: ["lib", "mix.exs", "README.md", "LICENSE.md", ".formatter.exs"],
maintainers: ["Chris Dosé"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/peek-travel/tipalti-elixir",
"Readme" => "https://github.com/peek-travel/tipalti-elixir/blob/#{@version}/README.md",
"Changelog" => "https://github.com/peek-travel/tipalti-elixir/blob/#{@version}/CHANGELOG.md"
}
]
end
defp dialyzer do
[
plt_add_deps: :project,
plt_add_apps: [:decimal, :xmerl],
plt_core_path: "_build/#{Mix.env()}",
flags: [:unmatched_returns, :error_handling, :underspecs]
]
end
defp docs do
[
main: "Tipalti",
source_ref: @version,
source_url: "https://github.com/peek-travel/tipalti-elixir",
extras: ["README.md", "LICENSE.md"],
groups_for_modules: [
API: [Tipalti.API.Payee, Tipalti.API.Payer],
IPN: [Tipalti.IPN.Router],
IFrames: [Tipalti.IFrame.InvoiceHistory, Tipalti.IFrame.PaymentsHistory, Tipalti.IFrame.SetupProcess],
"Data types": [
Tipalti.Balance,
Tipalti.ClientError,
Tipalti.CustomField,
Tipalti.Invoice,
Tipalti.Invoice.Line,
Tipalti.Invoice.Approver,
Tipalti.PayeeExtended,
Tipalti.PayeeExtended.Properties,
Tipalti.Payee,
Tipalti.RequestError
]
]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0.0-rc.4", only: [:dev], runtime: false},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:ex_money, "~> 2.6 or ~> 3.0 or ~> 4.0 or ~> 5.0"},
{:excoveralls, "~> 0.7", only: :test},
{:hackney, "~> 1.11"},
{:inch_ex, ">= 0.0.0", only: :docs},
{:inflex, "~> 1.0 or ~> 2.0"},
{:mox, "~> 1.0", only: :test},
{:plug, "~> 1.6 or ~> 1.7"},
{:tesla, "~> 1.0"},
{:xml_builder, "~> 2.1"}
]
end
end