-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
63 lines (56 loc) · 1.41 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
defmodule Rill.MixProject do
use Mix.Project
@version "VERSION" |> File.read!() |> String.trim()
def project do
[
app: :rill,
version: @version,
elixir: "~> 1.7",
deps: deps(),
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
test_paths: ["test/automated"],
consolidate_protocols: consolidate_protocols(Mix.env()),
preferred_cli_env: [
itest: :dev
],
dialyzer: [
plt_add_apps: [:mnesia],
flags: [
:unmatched_returns,
:error_handling,
:race_conditions
],
paths: ["_build/#{Mix.env()}/lib/rill/consolidated"]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
def deps do
[
{:dialyxir, ">= 1.0.0-rc.3", only: [:dev], runtime: false},
{:ecto, ">= 3.0.0"},
{:ecto_sql, ">= 3.0.0"},
{:postgrex, ">= 0.14.0"},
{:jason, ">= 1.1.0"},
{:ex2ms, ">= 1.5.0"},
{:recase, ">= 0.3.0"}
]
end
def elixirc_paths(:test), do: ["lib", "test/automated/support"]
def elixirc_paths(_), do: ["lib"]
def consolidate_protocols(:test), do: false
def consolidate_protocols(:dev), do: false
def consolidate_protocols(_), do: true
def aliases do
[
itest: ["run"]
]
end
end