-
Notifications
You must be signed in to change notification settings - Fork 20
/
mix.exs
56 lines (50 loc) · 1.13 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 NimblePool.MixProject do
use Mix.Project
@version "1.1.0"
@url "https://github.com/dashbitco/nimble_pool"
def project do
[
app: :nimble_pool,
version: @version,
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
name: "NimblePool",
description: "A tiny resource-pool implementation",
deps: deps(),
docs: docs(),
package: package(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: ["coveralls.html": :test]
]
end
def application do
[
mod: {NimblePool.Application, []},
extra_applications: [:logger]
]
end
defp deps do
[
{:ex_doc, "~> 0.31", only: :docs},
{:excoveralls, "~> 0.16.1", only: :test}
]
end
defp docs do
[
main: "NimblePool",
source_ref: "v#{@version}",
source_url: @url,
groups_for_docs: [
"Worker callbacks": &(&1[:callback] == :worker),
"Pool callbacks": &(&1[:callback] == :pool)
]
]
end
defp package do
%{
licenses: ["Apache-2.0"],
maintainers: ["José Valim"],
links: %{"GitHub" => @url}
}
end
end