-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
86 lines (78 loc) · 2.03 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
defmodule Airbrake.Mixfile do
use Mix.Project
def project do
[
app: :airbrake_client,
version: "2.2.0",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
aliases: aliases(),
description: """
Elixir notifier to Airbrake.io (or Errbit) with plugs for Phoenix for automatic reporting.
""",
deps: deps(),
dialyzer: dialyzer(),
docs: docs(),
preferred_cli_env: [
all_tests: :test,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
test_coverage: [tool: ExCoveralls]
]
end
defp dialyzer do
[
ignore_warnings: ".dialyzer_ignore.exs",
list_unused_filters: true
]
end
defp docs do
[
main: "readme",
extras: ["README.md", "CHANGELOG.md"]
]
end
def package do
[
contributors: ["Jeremy D. Frens", "Clifton McIntosh", "Roman Smirnov"],
maintainers: ["CityBase, Inc."],
licenses: ["LGPL"],
links: %{github: "https://github.com/CityBaseInc/airbrake_client"}
]
end
def application do
[mod: {Airbrake, []}]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.30", only: [:dev, :test]},
{:excoveralls, "~> 0.18", only: :test},
{:httpoison, "~> 1.0 or ~> 2.0"},
{:jason, ">= 1.0.0", optional: true},
{:mox, "~> 1.1", only: :test},
{:poison, ">= 2.0.0", optional: true},
{:stream_data, "~> 0.6", only: [:dev, :test]}
]
end
defp aliases do
[
test: "test --no-start",
all_tests: [
"compile --force --warnings-as-errors",
"credo --strict",
"format --check-formatted",
"docs --output test/doc",
"coveralls --raise",
"dialyzer"
]
]
end
end