forked from gumi/connex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
44 lines (40 loc) · 1.01 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
defmodule Connex.Mixfile do
use Mix.Project
def project do
[
app: :connex,
version: "1.0.9",
elixir: "~> 1.8",
description: "Pooling and sharding connections",
package: [
maintainers: ["melpon", "kenichirow"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/gumi/connex"}
],
docs: [main: "Connex"],
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
source_url: "https://github.com/gumi/connex",
aliases: [test: &mix_test/1]
]
end
def application do
[
extra_applications: [:logger, :telemetry]
]
end
defp deps do
[
{:poolboy, "~> 1.5"},
{:redix, "~> 0.10", optional: true},
{:gomomento, "0.5.0"},
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
{:env, "~> 0.2.0", only: :test}
]
end
defp mix_test(args) do
System.put_env("CONNEX_REDIS_HOST", "localhost")
Mix.Task.run("test", args)
end
end