-
Notifications
You must be signed in to change notification settings - Fork 22
/
mix.exs
74 lines (67 loc) · 1.67 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
defmodule Memcache.Mixfile do
@moduledoc false
use Mix.Project
@source_url "https://github.com/ananthakumaran/memcachex"
@version "0.5.7"
def project do
[
app: :memcachex,
version: @version,
elixir: "~> 1.7",
package: package(),
deps: deps(),
docs: docs(),
dialyzer: dialyzer()
]
end
def application do
[
extra_applications: [:logger, :inets, :ssl],
mod: {Memcache.Application, []}
]
end
def deps() do
[
{:connection, "~> 1.0"},
{:telemetry, "~> 0.4.0 or ~> 1.0"},
{:poison, "~> 2.1 or ~> 3.0 or ~> 4.0 or ~> 5.0 or ~> 6.0", optional: true},
{:dialyxir, "~> 0.5", only: [:dev], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:exprof, "~> 0.2.0", only: :dev},
{:benchee, "~> 0.6", only: :dev},
{:toxiproxy, "~> 0.3", only: :test}
]
end
defp package do
[
description: "Memcached client for Elixir",
licenses: ["MIT"],
maintainers: ["ananthakumaran@gmail.com"],
links: %{
"Changelog" => "https://hexdocs.pm/memcachex/changelog.html",
"GitHub" => @source_url
}
]
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
defp dialyzer do
[
plt_add_deps: :transitive,
ignore_warnings: ".dialyzer_ignore",
flags: [:unmatched_returns, :race_conditions, :error_handling, :underspecs],
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
end
end