-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
51 lines (48 loc) · 1.37 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
defmodule Wocky.Release.Mixfile do
use Mix.Project
def project do
[
apps_path: "apps",
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls, test_task: "test"],
preferred_cli_env: [
coveralls: :test,
"coveralls.html": :test,
dialyzer: :test,
check: :test
],
dialyzer: [
plt_add_apps: [:ex_unit],
flags: [
:error_handling,
:race_conditions,
:underspecs,
:unmatched_returns
],
ignore_warnings: "dialyzer_ignore.exs",
list_unused_filters: true
],
deps: deps(),
aliases: aliases()
]
end
# Dependencies listed here are available only for this project
# and cannot be accessed from applications inside the apps folder
defp deps do
[
{:credo, "~> 1.1", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_check, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.8", only: [:dev, :test], runtime: false},
{:mix_audit, "~> 0.1", only: [:dev, :test], runtime: false}
]
end
defp aliases do
[
recompile: ["clean", "compile"],
prepare: ["deps.get", "recompile"],
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"]
]
end
end