-
Notifications
You must be signed in to change notification settings - Fork 37
/
mix.exs
69 lines (62 loc) · 1.49 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
defmodule Phone.Mixfile do
use Mix.Project
@source_url "https://github.com/fcevado/phone"
@version "0.5.9"
def project do
[
app: :phone,
version: @version,
elixir: ">= 1.1.0",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
docs: docs()
] ++ coverage()
end
def application do
[applications: []]
end
defp package do
[
description: """
Phone number parser for telephone numbers in international standard or
missing international country code.
""",
maintainers: ["Flávio M.V."],
licenses: ["Apache-2.0"],
links: %{
"Changelog" => "https://hexdocs.pm/phone/changelog.html",
"GitHub" => @source_url
}
]
end
defp deps do
[
{:excoveralls, "~> 0.18", only: :test, runtime: false},
{:credo, "~> 1.7", only: :dev, runtime: false},
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
{:benchfella, "0.3.5", only: :dev}
]
end
defp docs do
[
extras: ["CHANGELOG.md", "README.md"],
main: "readme",
formatters: ["html"],
api_reference: false,
skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
]
end
defp coverage do
[
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
end