This repository has been archived by the owner on Jul 6, 2023. It is now read-only.
forked from adam12/ecto_network
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
78 lines (71 loc) · 1.71 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
defmodule EctoNetwork.Mixfile do
use Mix.Project
@source_url "https://github.com/adam12/ecto_network"
@version "1.3.0"
def project do
[
app: :ecto_network,
version: @version,
elixir: "~> 1.4",
name: "EctoNetwork",
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: docs(),
lockfile: lockfile()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:excoveralls, "~> 0.14.0", only: :test},
{:ecto_sql, ">= 3.0.0"},
{:postgrex, ">= 0.14.0"},
{:phoenix_html, ">= 0.0.0", [optional: true]},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp package do
[
description: "Ecto types to support MACADDR and Network extensions provided by Postgrex.",
maintainers: ["Adam Daniels"],
licenses: ["MIT"],
links: %{
"Changelog" => "https://hexdocs.pm/ecto_network/changelog.html",
"GitHub" => @source_url
}
]
end
defp lockfile do
if function_exported?(System, :get_env, 2) do
System.get_env("LOCKFILE", "mix.lock")
else
System.get_env("LOCKFILE") || "mix.lock"
end
end
defp docs do
[
extras: [
"CHANGELOG.md",
{:"LICENSE.md", title: ["License"]},
"README.md"
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
end