-
Notifications
You must be signed in to change notification settings - Fork 5
/
mix.exs
83 lines (76 loc) · 1.98 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
defmodule Opencensus.Absinthe.MixProject do
use Mix.Project
@description "Integration between OpenCensus and Absinthe"
def project do
[
app: :opencensus_absinthe,
deps: deps(),
description: @description,
dialyzer: dialyzer(),
docs: docs(),
elixir: "~> 1.5",
package: package(),
preferred_cli_env: [
coveralls: :test,
"coveralls.html": :test,
"coveralls.json": :test,
credo: :test,
docs: :docs,
inch: :docs,
"inch.report": :docs,
"inchci.add": :docs,
licenses: :test,
"test.watch": :test
],
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
version: "0.2.0"
]
end
def application() do
[
extra_applications: [:logger]
]
end
defp package() do
[
licenses: ["Apache 2.0"],
links: %{
"GitHub" => "https://github.com/amplifiedai/opencensus_absinthe",
"OpenCensus" => "https://opencensus.io",
"OpenCensus Erlang" => "https://github.com/census-instrumentation/opencensus-erlang",
"OpenCensus BEAM" => "https://github.com/opencensus-beam"
}
]
end
defp deps() do
[
{:absinthe, "~> 1.4.0"},
{:absinthe_plug, "~> 1.4.0", optional: true},
{:credo, "~> 1.1.0", only: :test},
{:dialyxir, "~> 1.0.0-rc.6", only: :dev, runtime: false},
{:ex_doc, ">= 0.0.0", only: :docs},
{:excoveralls, "~> 0.11.1", only: :test},
{:inch_ex, "~> 2.0.0", only: :docs},
{:licensir, "~> 0.4.0", only: :test},
{:mix_test_watch, "~> 0.8", only: :test},
{:opencensus, "~> 0.9.2"},
{:opencensus_elixir, "~> 0.4.0"}
]
end
defp dialyzer() do
[
plt_add_deps: :apps_direct,
ignore_warnings: "dialyzer.ignore-warnings"
]
end
defp docs() do
[
main: "Opencensus.Absinthe",
extras: [],
deps: [
opencensus: "https://hexdocs.pm/opencensus/"
]
]
end
end