forked from ForzaElixir/rollbax
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
66 lines (59 loc) · 1.54 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
defmodule Rollbax.Mixfile do
use Mix.Project
@version "0.11.0"
@default_api_endpoint "https://api.rollbar.com/api/1/item/"
def project() do
[
app: :rollbax,
version: @version,
elixir: "~> 1.15",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: "Exception tracking and logging from Elixir to Rollbar",
package: package(),
deps: deps(),
aliases: [test: "test --no-start"],
name: "Rollbax",
docs: [
main: "Rollbax",
source_ref: "v#{@version}",
source_url: "https://github.com/ForzaElixir/rollbax",
extras: ["pages/Using Rollbax in Plug-based applications.md"]
]
]
end
def application() do
[
extra_applications: [:logger],
env: env(),
mod: {Rollbax, []}
]
end
defp deps() do
[
{:hackney, "~> 1.1"},
{:jason, "~> 1.0"},
{:ex_doc, "~> 0.18", only: :dev, runtime: false},
{:plug, "~> 1.4", only: :test},
{:cowboy, "~> 2.0", only: :test},
{:plug_cowboy, "~> 2.0", only: :test},
{:telemetry, "~> 1.2", only: :test}
]
end
defp package() do
[
maintainers: ["Aleksei Magusev", "Andrea Leopardi", "Eric Meadows-Jönsson"],
licenses: ["ISC"],
links: %{"GitHub" => "https://github.com/ForzaElixir/rollbax"}
]
end
defp env() do
[
enabled: false,
custom: %{},
api_endpoint: @default_api_endpoint,
enable_crash_reports: false,
reporters: [Rollbax.Reporter.Standard]
]
end
end