-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmix.exs
48 lines (44 loc) · 1.99 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
defmodule UniMux.Mixfile do
use Mix.Project
def project do
[app: :unimux,
version: "1.3.3",
elixir: "~> 1.3.0",
test_coverage: [tool: Coverex.Task, coveralls: true],
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(Mix.env)]
end
def application do
[applications: [:logger, :elixir, :metricman, :hello, :runtime_tools, :exrun | (if Mix.env == :release do [:lager_journald_backend] else [] end)],
mod: {UniMux, []}]
end
@exclude_deps [:earmark, :ex_doc]
defp deps(:release) do
Code.eval_file("mix.lock")
|> elem(0)
|> Enum.filter_map(&(not (elem(&1, 0) in @exclude_deps)), fn({key, _}) -> {key, path: "deps/" <> "#{key}", override: true} end)
end
defp deps(_) do
[{:lager, github: "basho/lager", tag: "3.2.2", override: true},
{:goldrush, github: "DeadZen/goldrush", tag: "0.1.8", override: true},
{:hello, github: "travelping/hello", branch: "master"},
{:hackney, "~> 1.4.4", override: true},
{:metricman, github: "xerions/metricman"},
{:exlager, github: "xerions/exlager"},
{:exrun, github: "liveforeverx/exrun"},
{:conform_exrm, github: "bitwalker/conform_exrm"},
# We use certain ref for conform because of bug with building of *.ez archive.
# We should use version from hex when it will be avaliable
{:conform, github: "bitwalker/conform", ref: "678dbfca6e7a94dd9d9214e6dbddf8b3ddb35dbf", override: true},
{:coverex, github: "alfert/coverex", tag: "v1.4.3", only: :test},
{:meck, github: "eproxus/meck", tag: "0.8.3", override: true},
{:exometer_core, github: "Feuerlabs/exometer_core", override: true},
{:erlware_commons, "~> 0.21.0", override: true},
{:edown, github: "uwiger/edown", override: true},
{:setup, github: "uwiger/setup", override: true},
{:mock, github: "jjh42/mock", only: :test},
{:relx, github: "erlware/relx", override: true}, #we need https://github.com/erlware/relx/issues/524
{:exrm, "~> 1.0.8"}]
end
end