forked from BobbieBarker/ecto_ip_range
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
93 lines (84 loc) · 2.1 KB
/
Copy pathmix.exs
File metadata and controls
93 lines (84 loc) · 2.1 KB
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
defmodule EctoIPRange.MixProject do
use Mix.Project
@url_github "https://github.com/mneudert/ecto_ip_range"
def project do
[
app: :ecto_ip_range,
name: "Ecto IP Range",
version: "0.2.0-dev",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
aliases: aliases(),
deps: deps(),
description: "Ecto/Postgrex IP4R extension",
dialyzer: dialyzer(),
docs: docs(),
package: package(),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test
],
test_coverage: [tool: ExCoveralls]
]
end
def application do
[extra_applications: [:logger]]
end
defp aliases do
[
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
]
end
defp deps do
[
{:credo, "~> 1.0", only: :dev, runtime: false},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:ecto_sql, "~> 3.0"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:excoveralls, "~> 0.14.0", only: :test, runtime: false},
{:postgrex, ">= 0.0.0"}
]
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
[
groups_for_modules: [
"Ecto Types": [
EctoIPRange.IP4,
EctoIPRange.IP4R,
EctoIPRange.IP6,
EctoIPRange.IP6R
],
"Postgrex Extensions": [
EctoIPRange.Postgrex.IP4Extension,
EctoIPRange.Postgrex.IP4RExtension,
EctoIPRange.Postgrex.IP6Extension,
EctoIPRange.Postgrex.IP6RExtension
]
],
main: "EctoIPRange",
source_ref: "master",
source_url: @url_github
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
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