-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
65 lines (59 loc) · 1.53 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
defmodule TaskBunnySentry.Mixfile do
use Mix.Project
@version "0.4.0"
@description "TaskBunny job failure backend that reports the error to Sentry"
@source_url "https://github.com/smartrent/task_bunny_sentry"
def project do
[
app: :task_bunny_sentry,
version: @version,
elixir: "~> 1.7",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: [
extras: ["README.md", "CHANGELOG.md"],
main: "readme",
source_ref: "v#{@version}",
source_url: @source_url
],
description: @description,
package: package()
]
end
def application do
[]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:bypass, "~> 2.1", only: :test},
{:ex_doc, "~> 0.28", only: :dev},
{:hackney, "~> 1.8", optional: true},
{:jason, "~> 1.1", optional: true},
{:plug, "~> 1.0", only: :test},
{:sentry, "~> 8.0", optional: true},
{:task_bunny, "~> 0.4", organization: "smartrent", optional: true}
]
end
defp package do
[
name: :task_bunny_sentry,
organization: "smartrent",
files: [
# Project files
"mix.exs",
"README.md",
"LICENSE.md",
"lib"
],
licenses: ["MIT"],
links: %{
"Github" => @source_url,
"Changelog" => @source_url <> "/blob/master/CHANGELOG.md"
}
]
end
end