-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathmix.exs
101 lines (94 loc) · 3.5 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
98
99
100
101
Code.load_file(Path.join([__DIR__, "config", "helpers.exs"]))
defmodule Cog.Mixfile do
use Mix.Project
def project do
[app: :cog,
version: "0.11.0",
elixir: "~> 1.3.1",
erlc_paths: ["emqttd_plugins"],
erlc_options: [:debug_info, :warnings_as_errors],
elixirc_options: [warnings_as_errors: System.get_env("ALLOW_WARNINGS") == nil],
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps,
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
aliases: aliases,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: ["coveralls": :test,
"coveralls.html": :test,
"coveralls.post": :test]
]
end
def application do
[applications: [:logger,
:probe,
:logger_file_backend,
:ibrowse,
:httpotion,
:gproc,
:esockd,
:exml,
:hedwig,
:slack,
:cowboy,
:phoenix,
:phoenix_ecto,
:postgrex,
:phoenix_html,
:comeonin,
:spanner,
:exirc],
included_applications: [:emqttd],
mod: {Cog, []}]
end
defp deps do
[{:slack, github: "BlakeWilliams/Elixir-Slack"},
{:websocket_client, github: "jeremyong/websocket_client"},
{:poison, "~> 1.5.2"},
{:ibrowse, "~> 4.2.2", override: true},
{:uuid, "~> 1.1.3"},
{:httpotion, "~> 3.0.0", override: true},
{:jsx, "~> 2.8.0", override: true},
{:postgrex, "~> 0.11.2"},
{:ecto, "~> 2.0.2"},
{:lager_logger, "~> 1.0.2"},
{:logger_file_backend, github: "onkel-dirtus/logger_file_backend"},
{:gen_logger, github: "emqtt/gen_logger", branch: "master", override: true},
{:esockd, github: "emqtt/esockd", ref: "e6c27801bb5331d064081ef6d6af291a2878038c", override: true},
{:emqttc, github: "operable/emqttc", tag: "cog-0.2"},
{:emqttd, github: "operable/emqttd", branch: "tweaks-for-upstream"},
{:lager, "~> 3.0.2", override: true},
{:cowboy, "~> 1.0.4"},
{:phoenix, "~> 1.1.4"},
{:phoenix_ecto, "~> 3.0.0"},
{:phoenix_html, "~> 2.6.0"},
{:comeonin, "~> 2.1.1"},
{:hedwig, "~> 0.3.0"},
{:gproc, "~> 0.5.0", override: true},
{:html_entities, "~> 0.3.0"},
{:adz, github: "operable/adz", tag: "v0.10.0"},
{:spanner, github: "operable/spanner", branch: "v0.11.0"},
{:probe, github: "operable/probe", tag: "v0.10.0"},
{:exml, github: "paulgray/exml", tag: "2.2.1"},
{:fumanchu, github: "operable/fumanchu", tag: "v0.10.0"},
{:exirc, "~> 0.9.2"},
{:exjsx, "~> 3.2", override: true},
{:credo, "~> 0.3", only: [:dev, :test]},
{:phoenix_live_reload, "~> 1.0.3", only: :dev},
{:earmark, "~> 0.2.1", only: :dev},
{:ex_doc, "~> 0.10", only: :dev},
{:mix_test_watch, "~> 0.1.1", only: [:test, :dev]},
{:excoveralls, "~> 0.5", only: :test},
{:exvcr, "~> 0.7.3", only: [:dev, :test]}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "web", "test/support"]
defp elixirc_paths(_), do: ["lib", "web"]
defp aliases do
["ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
"compile": ["compile", "cog.embedded"]]
end
end