-
Notifications
You must be signed in to change notification settings - Fork 6
/
mix.exs
123 lines (116 loc) · 3.45 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
defmodule Ask.Mixfile do
use Mix.Project
def project do
[
app: :ask,
build_path: "/_build",
deps_path: "/deps",
version: "0.31.0",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
consolidate_protocols: Mix.env() != :test,
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps()
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {Ask, []},
applications: [
:phoenix,
:phoenix_pubsub,
:phoenix_html,
:cowboy,
:logger,
:gettext,
:alto_guisso,
:phoenix_ecto,
:oauth2,
:timex,
:sentry,
:prometheus_phoenix,
:prometheus_plugs
],
extra_applications: [
:myxql,
:coherence
]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:phoenix, "~> 1.4.0"},
# {:plug, "~> 1.8"}, # held until ... ?
# {:plug_crypto, "~> 1.1.1"}, # held until Phoenix 1.5
{:plug_cowboy, "~> 2.0"},
{:phoenix_ecto, "~> 4.0"},
{:ecto_sql, "~> 3.9"},
{:myxql, ">= 0.6.2"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_html, "~> 2.10"},
{:phoenix_live_reload, "~> 1.2.0", only: :dev},
{:gettext, "~> 0.14"},
{:ex_machina, "~> 2.0", only: :test},
{:csv, "~> 1.4.2"},
{:oauth2, "~> 0.7.0"},
{:mutex, "~> 1.1.3"},
{:mock, "~> 0.3.0", only: :test},
{:mox, "~> 0.5", only: :test},
{:timex, "~> 3.6.0"},
{:sentry, "~> 7.0"},
{:hackney, "~> 1.0"},
{:ex_json_schema, "~> 0.6.2"},
{:deep_merge, "~> 0.1.0"},
# "~> 0.6"
{:coherence, github: "smpallen99/coherence", branch: "master", override: true},
{:gen_smtp, "~> 0.11"},
# TODO: update to ~> 2.0
{:xml_builder, "~> 0.0.9"},
{:language_names, "~> 0.1.0"},
{:prometheus_phoenix, "~> 1.0"},
{:simetric, "~> 0.1.0"},
{:prometheus_plugs, "~> 1.1"},
{:alto_guisso, github: "instedd/alto_guisso_ex"},
{:pp, "~> 0.1.0", only: [:dev, :test]},
{:bypass, "~> 2.0", only: :test},
{:trailing_format_plug, "~> 0.0.7"},
{:gen_stage, "~> 0.14"},
{:zstream, "~> 0.2.0"},
# required by Phoenix
{:jason, "~> 1.0"},
# until we migrate Surveda to Jason
{:poison, "~> 3.1"},
# {:telemetry, "~> 0.4.3"},
# held back because of warnings & errors with newer versions
{:swoosh, "~> 0.17.0"}
]
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
[
"ecto.setup": ["ecto.create", "ecto.load", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
"ecto.migrate": ["ecto.migrate", "ask.ecto_dump"],
"ecto.rollback": ["ecto.rollback", "ask.ecto_dump"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
deadlocks: ["ask.deadlock.test"]
]
end
end