-
Notifications
You must be signed in to change notification settings - Fork 49
/
mix.exs
68 lines (62 loc) · 1.85 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 Rihanna.MixProject do
use Mix.Project
def project do
[
app: :rihanna,
version: "2.3.1",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: [ignore_warnings: "dialyzer.ignore-warnings"],
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
docs: [
main: "Rihanna",
extras: ["README.md"]
],
# Docs
name: "Rihanna",
source_url: "https://github.com/samphilipd/rihanna",
homepage_url: "https://github.com/samphilipd/rihanna/README.md"
]
end
def application do
case Mix.env() do
# In test we start an application to test the Ecto Repo integration
:test ->
[
mod: {TestApp, []},
extra_applications: [:logger, :runtime_tools]
]
_ ->
[extra_applications: [:logger]]
end
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:postgrex, ">= 0.13.3"},
{:telemetry, "~> 0.4.2 or ~> 1.0"},
# Optional Ecto integration
{:ecto, ">= 2.0.0", optional: true},
{:ecto_sql, ">= 3.0.0", optional: true},
# Development tools
{:jason, ">= 1.1.2", only: :test},
{:benchee, ">= 0.13.0", only: :test},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:dialyxir, ">= 0.0.0", only: :dev, runtime: false},
{:mix_test_watch, ">= 0.0.0", only: :dev, runtime: false},
{:temporary_env, ">= 2.0.0", only: :test, runtime: false}
]
end
defp package() do
[
description: "Rihanna is a database-backed job queue.",
licenses: ["MIT"],
maintainers: ["[email protected]", "[email protected]"],
links: %{"GitHub" => "https://github.com/samphilipd/rihanna"}
]
end
end