-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
52 lines (48 loc) · 1.7 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
defmodule HelloTestServer.Mixfile do
use Mix.Project
def project do
[app: :hello_test_server,
version: "0.2.0",
test_coverage: [tool: Coverex.Task, coveralls: true],
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(Mix.env)]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[applications: [:logger, :elixir, :hello, :runtime_tools, :exrun, :metricman | (if Mix.env == :release do [:lager_journald_backend] else [] end)],
mod: {HelloTestServer, []}]
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
#
# Type `mix help deps` for more examples and options
@doc_deps [:earmark, :ex_doc]
defp deps(:release) do
Code.eval_file("mix.lock")
|> elem(0)
|> Enum.filter_map(&(not (&1 in @doc_deps)), fn({key, _}) -> {key, path: "deps/" <> "#{key}", override: true} end)
end
defp deps(_) do
[{:lager, "~> 2.1.1", override: true},
{:exrun, github: "liveforeverx/exrun"},
{:exrm, "~> 0.18.0"},
{:metricman, github: "surik/metricman"},
{:jsx, github: "liveforeverx/jsx", branch: "mix_compile", override: true},
{:hello, github: "travelping/hello", branch: "master"},
{:coverex, "~> 1.4.1", only: :test},
#Dependencies due to resolution problems in mix
{:hackney, "~> 1.1.0", override: true},
{:meck, github: "eproxus/meck", override: true},
{:edown, github: "uwiger/edown", override: true},
{:goldrush, github: "DeadZen/goldrush", override: true, tag: "0.1.6"}
]
end
end