-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmix.exs
87 lines (77 loc) · 2.15 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
defmodule Riemannx.Mixfile do
use Mix.Project
@version "4.2.0"
def project do
[
app: :riemannx,
version: @version,
elixir: "~> 1.7",
package: package(),
description: "A riemann client for elixir with UDP/TCP/TLS support.",
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
elixirc_paths: elixirc_paths(Mix.env()),
aliases: [test: "test --no-start"],
dialyzer:
[
ignore_warnings: "./dialyzer.ignore-warnings",
plt_add_apps: [:ssl, :stdlib, :public_key, :qex]
] ++ dialyzer(),
docs: [
main: "Riemannx",
source_ref: "v#{@version}",
source_url: "https://github.com/hazardfn/riemannx",
extras: ["README.md"]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
included_applications: [:qex],
applications: applications(Mix.env()),
mod: {Riemannx.Application, []}
]
end
defp elixirc_paths(:test), do: ["lib", "test/servers", "test/"]
defp elixirc_paths(_), do: ["lib"]
defp applications(:test) do
applications(:others) ++ [:propcheck]
end
defp applications(_) do
[:poolboy, :logger, :exprotobuf]
end
defp deps do
[
{:exprotobuf, "~> 1.2.17"},
{:poolboy, "~> 1.5"},
{:excoveralls, "~> 0.11", only: [:test]},
{:ex_doc, "~> 0.21", only: [:dev], runtime: false},
{:propcheck, "~> 1.1.5", only: :test},
{:dialyxir, "~> 1.0.0-rc.6", only: [:dev, :test], runtime: false},
{:credo, "~> 1.1.2", only: [:dev, :test], runtime: false},
{:qex, "~> 0.5.0"}
]
end
defp package do
%{
licenses: ["MIT"],
maintainers: ["Howard Beard-Marlowe"],
links: %{"GitHub" => "https://github.com/hazardfn/riemannx"}
}
end
defp dialyzer do
if travis?(),
do: [plt_file: {:no_warn, System.get_env("PLT_LOCATION")}],
else: []
end
defp travis? do
if System.get_env("TRAVIS"), do: true, else: false
end
end