-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathmix.exs
93 lines (87 loc) · 2.67 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
defmodule NervesHubUmbrella.MixProject do
use Mix.Project
@version File.read!("VERSION") |> String.trim()
def project do
[
version: @version,
apps_path: "apps",
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [
plt_add_apps: [:ex_unit, :mix],
ignore_warnings: "dialyzer.ignore-warnings"
],
releases: [
nerves_hub_www: [
steps: [:assemble],
include_executables_for: [:unix],
runtime_config_path: "apps/nerves_hub_www/config/release.exs",
reboot_system_after_config: true,
version: @version,
applications: [
nerves_hub_www: :permanent
]
],
nerves_hub_device: [
steps: [:assemble],
include_executables_for: [:unix],
runtime_config_path: "apps/nerves_hub_device/config/release.exs",
reboot_system_after_config: true,
version: @version,
applications: [
nerves_hub_device: :permanent
]
],
nerves_hub_api: [
steps: [:assemble],
include_executables_for: [:unix],
runtime_config_path: "apps/nerves_hub_api/config/release.exs",
reboot_system_after_config: true,
version: @version,
applications: [
nerves_hub_api: :permanent
]
]
]
]
end
# Dependencies listed here are available only for this
# project and cannot be accessed from applications inside
# the apps folder.
#
# Run "mix help deps" for examples and options.
defp deps do
[
# {:excoveralls, "~> 0.8", only: :test},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false},
{:recon, "~> 2.5"}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to create, migrate and run the seeds file at once:
#
# $ mix ecto.setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
"assets.setup": ["assets.install", "assets.build"],
"ecto.setup": [
"ecto.create",
"ecto.migrate",
"run apps/nerves_hub_web_core/priv/repo/seeds.exs"
],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(env) when env in [:dev, :test],
do: [Path.expand("test/support")]
defp elixirc_paths(_),
do: ["lib"]
end