-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathmix.exs
62 lines (57 loc) · 1.43 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
defmodule Retry.Mixfile do
use Mix.Project
def project do
[
app: :retry,
name: "retry",
description:
"Simple Elixir macros for linear retry, exponential backoff and wait with composable delays.",
version: "0.19.0",
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
docs: docs(),
dialyzer: dialyzer(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
credo: :test,
"coveralls.html": :test,
commit: :test
],
aliases: [
commit: ["dialyzer", "credo --strict", "coveralls.html --trace"]
],
default_task: "commit"
]
end
defp deps do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18", only: :test},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.37", only: :dev, runtime: false},
{:earmark, "~> 1.4", only: :dev, runtime: false}
]
end
defp package do
[
maintainers: ["Safwan Kamarrudin"],
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/safwank/ElixirRetry"}
]
end
defp docs do
[
main: "readme",
extras: ["README.md"],
source_url: "https://github.com/safwank/ElixirRetry",
source_ref: "master"
]
end
defp dialyzer do
[
plt_add_apps: [:ex_unit, :mix],
]
end
end