-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
121 lines (111 loc) · 3.18 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
112
113
114
115
116
117
118
119
120
121
defmodule TeslaMiddlewareXmlrpc.MixProject do
use Mix.Project
@github "https://github.com/cogini/tesla_middleware_xmlrpc"
def project do
[
app: :tesla_middleware_xmlrpc,
version: "0.7.0",
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
aliases: aliases(),
dialyzer: [
plt_add_apps: [:mix, :ex_unit]
],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.lcov": :test,
quality: :test,
"quality.ci": :test
],
description: description(),
package: package(),
# Docs
name: "Tesla.Middleware.XMLRPC",
source_url: @github,
homepage_url: @github,
docs: docs(),
deps: deps()
]
end
def application do
[
extra_applications: [:logger] ++ extra_applications(Mix.env())
]
end
defp extra_applications(:dev), do: [:tools]
defp extra_applications(:test), do: [:tools]
# defp extra_applications(:test), do: [:hackney]
defp extra_applications(_), do: []
defp elixirc_paths(:dev), do: ["lib", "test/support"]
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.2", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.29", only: :dev, runtime: false},
{:excoveralls, "~> 0.14", only: [:dev, :test], runtime: false},
{:hackney, "~> 1.18", only: [:dev, :test]},
{:junit_formatter, "~> 3.3", only: [:dev, :test], runtime: false},
{:mix_audit, "~> 2.0", only: [:dev, :test], runtime: false},
{:tesla, "~> 1.5"},
{:xmlrpc, "~> 1.3"}
]
end
defp description do
"Middleware for Tesla HTTP client library that encodes and decodes XML-RPC"
end
defp package do
[
name: "tesla_middleware_xmlrpc",
maintainers: ["Jake Morrison"],
licenses: ["Apache-2.0"],
links: %{
"GitHub" => @github,
"Tesla" => "https://github.com/elixir-tesla/tesla",
"xmlrpc" => "https://github.com/ewildgoose/elixir-xml_rpc"
}
]
end
defp docs do
[
main: "Tesla.Middleware.XMLRPC",
extras: [
"README.md",
"CHANGELOG.md": [title: "Changelog"],
LICENSE: [title: "License (Apache 2.0)"],
"CODE_OF_CONDUCT.md": [title: "Code of Conduct"]
],
api_reference: false
# source_url_pattern: "#{@github}/blob/master/%{path}#L%{line}"
]
end
defp aliases do
[
setup: ["deps.get"],
quality: [
"format --check-formatted",
# mix deps.clean --unlock --unused
"deps.unlock --check-unused",
"credo",
"hex.audit",
"deps.audit",
"dialyzer --halt-exit-status"
],
"quality.ci": [
"format --check-formatted",
"deps.unlock --check-unused",
"hex.audit",
"deps.audit",
"credo",
"dialyzer --halt-exit-status"
]
]
end
end