forked from elixir-geolix/mmdb2_decoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
80 lines (72 loc) · 1.89 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
defmodule MMDB2Decoder.MixProject do
use Mix.Project
@url_github "https://github.com/elixir-geolix/mmdb2_decoder"
def project do
[
app: :mmdb2_decoder,
name: "MMDB2 Decoder",
version: "3.1.0-dev",
elixir: "~> 1.7",
aliases: aliases(),
deps: deps(),
description: "MMDB2 File Format Decoder",
dialyzer: dialyzer(),
docs: docs(),
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
preferred_cli_env: [
"bench.database": :bench,
"bench.lookup": :bench,
"bench.parse": :bench,
coveralls: :test,
"coveralls.detail": :test
],
test_coverage: [tool: ExCoveralls]
]
end
defp aliases() do
[
"bench.database": ["run bench/database.exs"],
"bench.lookup": ["run bench/lookup.exs"],
"bench.parse": ["run bench/parse.exs"]
]
end
defp deps do
[
{:benchee, "~> 1.0", only: :bench, runtime: false},
{:credo, "~> 1.0", only: :dev, runtime: false},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:excoveralls, "~> 0.14.0", only: :test, runtime: false},
{:geolix_testdata, "~> 0.5.1", only: [:bench, :test], runtime: false}
]
end
defp dialyzer do
[
flags: [
:error_handling,
:race_conditions,
:underspecs,
:unmatched_returns
],
plt_core_path: "plts",
plt_file: {:no_warn, "plts/dialyzer.plt"}
]
end
defp docs do
[
main: "MMDB2Decoder",
source_ref: "master",
source_url: @url_github
]
end
defp elixirc_paths(:test), do: ["lib", "test/helpers"]
defp elixirc_paths(_), do: ["lib"]
defp package do
%{
files: ["CHANGELOG.md", "LICENSE", "mix.exs", "README.md", "lib"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => @url_github}
}
end
end