forked from etalab/transport-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
89 lines (83 loc) · 2.26 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
defmodule Transport.Mixfile do
use Mix.Project
def project do
[
app: :transport,
version: "0.0.1",
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env),
gettext: [{:write_reference_comments, false}],
compilers: [:phoenix, :gettext] ++ Mix.compilers,
preferred_cli_env: [
vcr: :test, "vcr.delete": :test, "vcr.check": :test, "vcr.show": :test
],
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
aliases: aliases()
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {Transport.Application, []},
extra_applications: [
:logger,
:mime,
:oauth2,
:poolboy,
:scrivener,
:scrivener_html,
:sentry,
]
]
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
[
{:csv, "~> 2.1"},
{:earmark, "~> 1.3"},
{:exconstructor, "~> 1.1"},
{:gettext, "~> 0.11"},
{:httpoison, "~> 1.5"},
{:oauth2, "~> 0.9"},
{:phoenix, "~> 1.4"},
{:phoenix_html, "~> 2.13"},
{:phoenix_markdown, "~> 1.0"},
{:plug_cowboy, "~> 1.0"},
{:poolboy, "~> 1.5"},
{:recon, "~> 2.4"},
{:vex, "~> 0.8"},
{:quantum, "~> 2.3"},
{:timex, "~> 3.5"},
{:sentry, "~> 6.0"},
{:scrivener, "~> 2.5"},
{:scrivener_ecto, "~> 2.0"},
{:scrivener_html, "~> 1.8"},
{:scrivener_list, "~>2.0"},
{:ecto, "~> 3.0"},
{:ecto_sql, "~> 3.0"},
{:postgrex, ">= 0.0.0"},
{:jason, "~> 1.1"},
{:geo_postgis, "~> 2.0"},
{:open_api_spex, "~> 3.1"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:exvcr, "~> 0.10", only: :test},
{:hound, "~> 1.0", only: :test},
{:credo, "~> 0.8", only: [:dev, :test], runtime: false},
]
end
defp aliases do
[
test: ["ecto.create --quiet", "ecto.migrate", "test"],
"phx.migrate_phx.server": ["ecto.migrate", "phx.server"]
]
end
end