-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
86 lines (77 loc) · 2.01 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 Mine.MixProject do
use Mix.Project
def project do
[
app: :mine,
version: "1.1.0",
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
test_coverage: test_coverage(),
preferred_cli_env: [
check: :test,
credo: :test,
dialyzer: :test,
doctor: :test
]
]
end
defp test_coverage do
[
ignore_modules: [
Mine.ANSI,
Mine.BoardHelper,
Mine.WSCLI
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :mnesia],
mod: {Mine.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:gen_state_machine, "~> 3.0"},
{:jason, "~> 1.4"},
{:plug, "~> 1.14"},
{:plug_cowboy, "~> 2.6"},
{:ecto_mnesia, github: "manuel-rubio/ecto_mnesia", branch: "support_for_ecto3"},
{:number, "~> 1.0"},
{:timex, "~> 3.7"},
# for releases
{:distillery, github: "bors-ng/distillery"},
{:ecto_boot_migration, "~> 0.3"},
# for test
{:websockex, "~> 0.4", only: :test},
# tooling for quality check
{:dialyxir, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:credo, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:doctor, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:ex_check, "~> 0.14", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:mix_audit, ">= 0.0.0", only: [:dev, :test], runtime: false}
]
end
defp aliases do
[
release: [
"deps.get",
"compile",
"distillery.release --upgrade --env=prod"
],
check: [
"ecto.create",
"ecto.migrate",
"check"
]
]
end
end