-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmix.exs
97 lines (88 loc) · 2.4 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
91
92
93
94
95
96
97
defmodule ExPlasma.MixProject do
use Mix.Project
def project do
[
app: :ex_plasma,
version: "0.3.0",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
deps: deps(),
package: package(),
name: "ExPlasma",
docs: docs(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
dialyzer: dialyzer()
]
end
defp description do
"""
A library for encoding, decoding and validating transactions used for the OMG Network Plasma contracts.
"""
end
defp package do
[
name: :ex_plasma,
maintainers: ["OMG Network team"],
licenses: ["Apache-2.0 License"],
links: %{"GitHub" => "https://github.com/omgnetwork/ex_plasma"}
]
end
defp docs do
[
main: "readme",
extras: [
"README.md"
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
applications: [:ex_abi, :ex_rlp, :ex_keccak, :ex_secp256k1, :merkle_tree],
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.4", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:ethereumex, "~> 0.6.0", only: [:test]},
{:ex_abi, "~> 0.5.1"},
{:ex_rlp, "~> 0.5.3"},
{:excoveralls, "~> 0.10", only: [:test]},
{:ex_keccak, "~> 0.1.2"},
{:ex_secp256k1, "~> 0.1.1"},
{:merkle_tree, "~> 2.0.0"},
{:stream_data, "~>0.4.3", only: [:test]},
{:telemetry, "~> 0.4", only: [:test]},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
defp dialyzer do
[
flags: [:error_handling, :race_conditions, :underspecs, :unknown, :unmatched_returns],
ignore_warnings: "dialyzer.ignore-warnings",
list_unused_filters: true,
plt_add_apps: plt_apps()
]
end
defp plt_apps,
do: [
:ex_abi,
:ex_rlp,
:merkle_tree
]
end