-
Notifications
You must be signed in to change notification settings - Fork 33
/
mix.exs
86 lines (79 loc) · 2.6 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
defmodule LambdaEthereumConsensus.MixProject do
use Mix.Project
def project() do
[
app: :lambda_ethereum_consensus,
version: "0.1.0",
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: dialyzer(),
elixirc_paths: compiler_paths(Mix.env()),
warn_test_pattern: "_remove_warning.exs",
preferred_cli_env: [
dialyzer: :test,
generate_spec_tests: :test,
check_enabled_tests: :test
]
]
end
# Run "mix help compile.app" to learn about applications.
def application() do
[
extra_applications:
extra_applications(System.get_env("EXTRA_APPLICATIONS")) ++
[:logger, :runtime_tools, :observer],
mod: {LambdaEthereumConsensus.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps() do
[
{:phoenix, "~> 1.7.7"},
{:plug_cowboy, "~> 2.5"},
{:tesla, "~> 1.4"},
{:exleveldb, "~> 0.14"},
{:eleveldb,
git: "https://github.com/basho/eleveldb", ref: "riak_kv-3.0.12", override: true},
{:jason, "~> 1.4"},
{:scrypt_elixir, "~> 0.1.1", hex: :scrypt_elixir_copy},
{:joken, "~> 2.6"},
{:rustler, "~> 0.32", runtime: false},
{:snappyer, "~> 1.2"},
{:yaml_elixir, "~> 2.8"},
{:timex, "~> 3.7"},
{:recase, "~> 0.7"},
{:rexbug, "~> 1.0"},
{:eep, git: "https://github.com/virtan/eep", branch: "master"},
{:protobuf, "~> 0.13.0"},
{:aja, "~> 0.6"},
{:logfmt_ex, "~> 0.4.2"},
{:ex2ms, "~> 1.6", runtime: false},
{:eflambe, "~> 0.3.1"},
{:patch, "~> 0.14.0", only: [:test]},
{:stream_data, "~> 1.0", only: [:test]},
{:benchee, "~> 1.2", only: [:dev]},
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:open_api_spex, "~> 3.18"},
{:crc32c, git: "https://github.com/lambdaclass/crc32c", branch: "bump-rustler-32"},
{:recode, "~> 0.7", only: [:dev, :test]},
{:sentry, "~> 10.8.0"},
{:prom_ex, "~> 1.11.0"},
{:flama, git: "https://github.com/lambdaclass/ht1223_tracer"},
{:uuid, "~> 1.1"}
]
end
defp dialyzer() do
[
# https://elixirforum.com/t/help-with-dialyzer-output/15202/5
plt_add_apps: [:ex_unit, :mix],
plt_file: {:no_warn, "priv/plts/project.plt"}
]
end
defp extra_applications("WX"), do: [:wx]
defp extra_applications(_), do: []
defp compiler_paths(:test),
do: ["test/spec", "test/fixtures"] ++ compiler_paths(:prod)
defp compiler_paths(_), do: ["lib", "proto"]
end