-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
79 lines (70 loc) · 2.01 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
defmodule GraphConn.MixProject do
use Mix.Project
@mix_env Mix.env()
def project do
[
app: :graph_conn,
version: "1.8.0",
elixir: "~> 1.10",
start_permanent: true,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
dialyzer: :test,
docs: :test,
bless: :test
],
dialyzer: [
plt_add_deps: :apps_direct,
plt_add_apps: [:mix, :plug, :cowboy, :jason, :mint, :public_key]
],
name: "GraphConn",
docs: _docs(),
deps: _deps(),
elixirc_paths: _elixirc_paths(Mix.env())
]
end
def application do
[
extra_applications: [:logger, :ssl]
]
|> _start_server(@mix_env)
end
# if you are changing this settings, don't forget to force compile the app
unless System.get_env("USE_LOCAL_AAPI") == "true" do
defp _start_server(list, :dev),
do: [{:mod, {GraphConn.MockGraphApplication, []}} | list]
end
defp _start_server(list, _), do: list
defp _deps do
[
{:elixir_uuid, "~> 1.2"},
# {:gun, "~> 2.1.0"},
{:gun, github: "burmajam/gun", branch: "fix-proxy-problem"},
{:finch, "~> 0.10"},
{:ssl_verify_fun, "~> 1.1"},
{:certifi, "~> 2.12"},
{:jason, "~> 1.1"},
## needed for action handlers only
{:cachex, "~> 4.0", optional: true},
{:cowlib, "~> 2.9", override: true},
{:telemetry, "~> 0.4 or ~> 1.0"},
# test dependencies
{:ring_logger, "~> 0.10", only: :dev},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.21", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.12", only: [:dev, :test], runtime: false},
{:plug_cowboy, "~> 2.1"}
]
end
defp _docs do
[
output: "doc"
]
end
defp _elixirc_paths(env) when env in [:dev, :test], do: ["lib", "test/support"]
defp _elixirc_paths(_), do: ["lib"]
end