forked from zhongwencool/redix-cluster
-
Notifications
You must be signed in to change notification settings - Fork 4
/
mix.exs
56 lines (50 loc) · 1.52 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
defmodule RedixCluster.Mixfile do
use Mix.Project
def project do
[
app: :redix_cluster_remastered,
version: "1.2.1",
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
name: "RedixCluster",
source_url: "https://github.com/SpotIM/redix-cluster",
elixirc_paths: elixirc_paths(Mix.env()),
# The main page in the docs
docs: [main: "RedixCluster", extras: ["README.md"]],
dialyzer: [plt_add_deps: :project]
]
end
def application do
[
extra_applications: applications(Mix.env())
]
end
defp applications(:dev), do: applications(:all) ++ [:remixed_remix]
defp applications(_all), do: [:logger, :runtime_tools]
defp deps do
[
{:redix, ">= 0.0.0"},
{:poolboy, "~> 1.5"},
# Necessary for dev and test
{:ex_doc, "~> 0.18.0", only: :dev},
{:credo, ">= 0.3.0", only: [:dev, :test]},
{:remixed_remix, "~> 1.0.0", only: :dev}
]
end
defp package do
[
description:
"A client for managing the connection to a Redis Cluster using Redix as a client.",
# These are the default files included in the package
files: ["lib", "mix.exs", "README.md"],
maintainers: ["Coby Benveniste"],
links: %{"GitHub" => "https://github.com/SpotIM/redix-cluster"},
licenses: ["MIT License"]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end