forked from bugsnag-elixir/bugsnag-elixir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
60 lines (53 loc) · 1.31 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
defmodule Bugsnag.Mixfile do
use Mix.Project
@source_url "https://github.com/bugsnag-elixir/bugsnag-elixir"
@version "3.0.2"
def project do
[
app: :bugsnag,
version: @version,
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
description: "An Elixir interface to the Bugsnag API.",
deps: deps(),
docs: docs()
]
end
def package do
[
contributors: ["Jared Norman", "Andrew Harvey", "Alex Grant", "Coburn Berry"],
maintainers: ["Guilherme de Maio"],
licenses: ["MIT"],
links: %{
Changelog: @source_url <> "/blob/master/CHANGELOG.md",
GitHub: @source_url
}
]
end
defp elixirc_paths(:test), do: ["lib", "web", "test/support"]
defp elixirc_paths(_), do: ["lib", "web"]
def application do
[
mod: {Bugsnag, []},
extra_applications: [:logger]
]
end
defp deps do
[
{:httpoison, ">= 0.13.0", optional: true},
{:jason, "~> 1.0", optional: true},
{:poison, ">= 1.5.0", optional: true},
{:ex_doc, ">= 0.0.0", only: :dev},
{:mox, "~> 1.0", only: :test}
]
end
defp docs do
[
main: "readme",
source_ref: "v" <> @version,
source_url: @source_url,
extras: ["README.md", "CHANGELOG.md"]
]
end
end