forked from opencensus-beam/opencensus_honeycomb
-
Notifications
You must be signed in to change notification settings - Fork 7
/
mix.exs
90 lines (82 loc) · 2.55 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
87
88
89
90
defmodule OpenTelemetry.Honeycomb.MixProject do
use Mix.Project
@description "Integration between OpenTelemetry and Honeycomb"
@version "0.5.0-rc.1"
def project do
[
app: :opentelemetry_honeycomb,
deps: deps(),
description: @description,
dialyzer: dialyzer(),
docs: docs(),
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()),
homepage_url: "https://github.com/garthk/opentelemetry_honeycomb",
package: package(),
preferred_cli_env: [
coveralls: :test,
"coveralls.html": :test,
"coveralls.json": :test,
docs: :dev
],
start_permanent: Mix.env() == :prod,
source_url: "https://github.com/garthk/opentelemetry_honeycomb",
test_coverage: [tool: ExCoveralls],
version: @version
]
end
def application do
[
extra_applications: [:logger, :hackney, :poison]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package() do
[
licenses: ["Apache 2.0"],
links: %{
"GitHub" => "https://github.com/garthk/opentelemetry_honeycomb",
"OpenTelemetry" => "https://opentelemetry.io",
"OpenTelemetry Erlang" => "https://github.com/open-telemetry/opentelemetry-erlang"
}
]
end
defp deps() do
[
{:credo, "~> 1.4.0", only: :dev, runtime: false},
{:dialyxir, "~> 1.0.0", only: :dev, runtime: false},
{:ex_doc, ">= 0.21.3", only: :dev, runtime: false},
{:excoveralls, "~> 0.12.3", only: :test, runtime: false},
{:licensir, "~> 0.6.1", only: :dev, runtime: false},
{:mix_test_watch, "~> 1.0.2", only: :dev, runtime: false},
{:mox, "~> 0.5.1", only: :test, runtime: false},
# versions for runtime dependencies deliberately set as low as possible:
{:hackney, ">= 1.11.0", optional: true},
{:jason, ">= 1.0.0", optional: true},
{:opentelemetry, "~> 0.5.0"},
{:opentelemetry_api, "~> 0.5.0"},
{:poison, ">= 1.5.0", optional: true},
{:telemetry, "~> 0.4.0"}
]
end
defp dialyzer() do
[
# 'mix dialyzer --format dialyzer' to get lines you can paste into:
ignore_warnings: "dialyzer.ignore-warnings",
list_unused_filters: true,
plt_add_apps: [:mix],
plt_add_deps: [:app_tree]
]
end
defp docs() do
[
api_reference: true,
authors: ["Garth Kidd"],
canonical: "http://hexdocs.pm/opentelemetry_honeycomb",
extras: [],
main: "OpenTelemetry.Honeycomb",
source_ref: "v#{@version}"
]
end
end