-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
71 lines (64 loc) · 1.46 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
defmodule Errol.MixProject do
use Mix.Project
@version "0.2.0"
@github "https://github.com/uesteibar/errol"
def project do
[
app: :errol,
version: @version,
description: "Opinionated RabbitMQ framework for Elixir",
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
package: package(),
docs: docs(),
source_url: @github,
test_coverage: [tool: Coverex.Task]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {Errol.Application, []},
extra_applications: [:logger, :amqp]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:amqp, "~> 1.0"},
{:ranch_proxy_protocol, "~> 2.0", override: true},
{:jason, "~> 1.0", optional: true},
{:coverex, "~> 1.4", only: :test},
{:mock, "~> 0.3.0", only: :test},
{:ex_doc, "~> 0.16", only: :dev, runtime: false}
]
end
defp package do
[
files: [
"lib",
"mix.exs",
"README.md",
"LICENSE"
],
links: %{"github" => @github},
maintainers: ["Unai Esteibar <[email protected]>"],
licenses: ["MIT"]
]
end
defp docs do
[
source_ref: "v#{@version}",
main: "readme",
extras: ["README.md"]
]
end
defp aliases do
[
test: "test --cover"
]
end
end