-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
81 lines (73 loc) · 2.02 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
defmodule Concentrate.MixProject do
use Mix.Project
def project do
[
app: :concentrate,
version: "0.1.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: LcovEx, output: "coverage", ignore_paths: ~w(test/ src/)],
dialyzer: [
plt_add_deps: :transitive,
flags: [
:unmatched_returns,
:underspecs,
:unknown
],
ignore_warnings: ".dialyzer.ignore-warnings"
],
elixirc_paths: elixirc_paths(Mix.env()),
aliases: aliases(),
releases: releases()
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp aliases do
[test: "test --no-start"]
end
defp releases do
[
concentrate: [
applications: [concentrate: :permanent, ex_aws: :permanent]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger | env_applications(Mix.env())],
mod: {Concentrate, []}
]
end
defp env_applications(:prod) do
[:sasl]
end
defp env_applications(_) do
[]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:benchee, "~> 1.0", runtime: false, only: :dev},
{:bypass, "~> 2.1", only: :test},
{:credo, "~> 1.0", runtime: false, only: :dev},
{:csv, "~> 2.1"},
{:dialyxir, "~> 1.0", runtime: false, only: :dev},
{:ehmon, git: "https://github.com/mbta/ehmon.git", branch: "master", only: ~w(test prod)a},
{:ex_aws, "~> 2.4"},
{:ex_aws_s3, "~> 2.3"},
{:lcov_ex, "~> 0.3.2", only: :test, runtime: false},
{:gen_stage, "~> 1.0"},
{:gpb, "~> 4.7", only: :dev, runtime: false, only: :dev},
{:httpoison, "~> 1.0"},
{:emqtt_failover, "~> 0.3"},
{:cowlib, "2.11.0", override: true},
{:jason, "~> 1.0"},
{:stream_data, "~> 1.1", only: :test},
{:tzdata, "~> 1.1.1"},
{:sentry, "~> 8.0"}
]
end
end