-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
57 lines (51 loc) · 1.33 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
defmodule GenAMQP.Mixfile do
use Mix.Project
def project do
[
app: :gen_amqp,
version: "6.0.0",
elixir: ">= 1.8.0",
description: description(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls]
]
end
defp description do
"""
GenAMQP is a set of utilities to make microservices using the worker pattern
"""
end
def application do
if Mix.env() == :test do
[extra_applications: [:logger], mod: {DemoApp, []}]
else
[extra_applications: [:logger], mod: {GenAMQP, []}]
end
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:amqp, "~> 1.1.1"},
{:elixir_uuid, "~> 1.2"},
{:poolboy, "~> 1.5"},
{:ex_doc, "~> 0.19", only: :dev},
{:poison, "~> 3.0", only: :test},
{:gen_debug, "~> 0.2.0", only: :test}
]
end
defp package do
# These are the default files included in the package
[
name: :gen_amqp,
files: ["lib", "mix.exs", "README*"],
maintainers: ["Michel Perez"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/mrkaspa/gen_amqp"}
]
end
end