forked from mbuhot/ecto_job
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
68 lines (60 loc) · 1.51 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
defmodule EctoJob.Mixfile do
use Mix.Project
@version "3.0.0"
@url "https://github.com/mbuhot/ecto_job"
def project do
[
app: :ecto_job,
description: "A transactional job queue built with Ecto, PostgreSQL and GenStage.",
version: @version,
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
elixirc_options: [warnings_as_errors: true],
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: dialyzer(),
docs: docs(),
package: package()
]
end
def application do
[extra_applications: [:logger]]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
licenses: ["MIT"],
maintainers: ["Mike Buhot ([email protected])"],
links: %{
"Github" => @url
}
]
end
defp dialyzer do
[
flags: ["-Werror_handling", "-Wno_unused", "-Wunmatched_returns", "-Wunderspecs"]
]
end
defp docs do
[
extras: ["README.md"],
main: "readme",
source_ref: "v#{@version}",
source_url: @url,
homepage_url: @url
]
end
defp deps do
[
{:ecto_sql, "~> 3.2"},
{:postgrex, "~> 0.15"},
{:jason, "~> 1.0"},
{:gen_stage, "~> 0.14"},
{:credo, "~> 1.0", only: :dev, runtime: false},
{:dialyxir, "~> 1.0.0-rc.7", only: :dev, runtime: false},
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
{:inch_ex, "~> 2.0", only: :dev, runtime: false}
]
end
end