forked from pinterest/elixometer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
79 lines (68 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
defmodule Elixometer.Mixfile do
use Mix.Project
def project do
[app: :elixometer,
version: "1.0.0",
elixir: "~> 1.0",
description: description,
source_url: project_url,
homepage_url: project_url,
package: package,
deps: deps,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: ["coveralls": :test,
"coveralls.detail": :test,
"coveralls.post": :test],
elixirc_paths: elixirc_paths(Mix.env),
]
end
def application do
[mod: {Elixometer.App, []},
applications: [:lager, :exometer_core, :exometer, :exometer_influxdb],
erl_opts: [parse_transform: "lager_transform"],
env: default_config(Mix.env)
]
end
def default_config(:test) do
[update_frequency: 20]
end
def default_config(_) do
[update_frequency: 1_000]
end
defp deps do
[
{:meck, "~> 0.8.3", only: :test},
{:edown, github: "uwiger/edown", tag: "0.7", override: true},
{:lager, github: "basho/lager", tag: "2.1.0", override: true},
{:hackney, ">= 0.12.0", [hex: :hackney, override: true]},
{:exometer_core, github: "PSPDFKit-labs/exometer_core", override: true},
{:exometer, github: "PSPDFKit-labs/exometer"},
{:exometer_influxdb, github: "atlantaelixir/exometer_influxdb"},
{:excoveralls, github: "parroty/excoveralls", tag: "v0.4.5", override: true, only: :test}
]
end
defp description do
"""
Elixometer is a light wrapper around exometer that defines and subscribes metrics automatically
to the configured reporter.
"""
end
defp project_url do
"""
https://github.com/pinterest/elixometer
"""
end
defp package do
[files: ["config", "lib", "mix.exs", "README.md", "LICENSE"],
maintainers: ["Jon Parise", "Steve Cohen"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => project_url}
]
end
defp elixirc_paths(:test) do
["lib", "test/support"]
end
defp elixirc_paths(_) do
["lib"]
end
end