forked from opt-elixir/faktory_worker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
71 lines (63 loc) · 1.65 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 FaktoryWorker.MixProject do
use Mix.Project
def project do
[
app: :faktory_worker,
version: "1.9.3",
elixir: "~> 1.8",
description: description(),
package: package(),
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
docs: docs(),
deps: deps()
]
end
def application do
[
extra_applications: [:crypto, :ssl, :logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_env), do: ["lib"]
defp deps do
[
{:certifi, "~> 2.5"},
{:excoveralls, "~> 0.10", only: :test},
{:jason, "~> 1.1"},
{:poolboy, "~> 1.5"},
{:telemetry, "~> 0.4.0 or ~> 1.0"},
{:ex_doc, "~> 0.28.0", only: :dev, runtime: false},
{:mox, "~> 1.0", only: :test}
]
end
defp docs() do
[
name: "Faktory Worker",
main: "faktory-worker",
extras: doc_extras(),
source_url: "https://github.com/SeatedInc/faktory_worker"
]
end
defp doc_extras() do
[
"README.md": [filename: "faktory-worker"],
"docs/configuration.md": [title: "Configuration"],
"docs/logging.md": [title: "Logging"],
"docs/sandbox-testing.md": [title: "Sandbox Testing"],
"docs/mutate.md": [title: "Mutate API"]
]
end
defp description do
"A Faktory worker implementation for Elixir"
end
defp package do
[
name: :faktory_worker,
maintainers: ["Stuart Welham", "John Griffin", "Peter Brown"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/SeatedInc/faktory_worker"}
]
end
end