forked from bors-ng/bors-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
92 lines (87 loc) · 2.56 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
defmodule BorsNg.Mixfile do
use Mix.Project
def project do
[ name: "Bors-NG",
app: :bors,
version: "0.1.0",
source_url: "https://github.com/bors-ng/bors-ng",
homepage_url: "https://bors.tech/",
docs: [
main: "hacking",
extras: [ "HACKING.md", "CONTRIBUTING.md", "README.md" ] ],
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
aliases: aliases(),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
elixirc_paths: elixirc_paths(Mix.env),
dialyzer: [
flags: [
"-Wno_unused",
"-Werror_handling",
"-Wrace_conditions" ] ] ]
end
# Configuration for the OTP application.
def application do
[mod: {BorsNG.Application, []},
extra_applications: [:logger]]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run ecto setup before running tests.
defp aliases do
[
"test": ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
# Dependencies can be Hex packages:
#
# {:my_dep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:my_dep, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
#
# Type "mix help deps" for more examples and options.
#
# Dependencies listed here are available only for this project
# and cannot be accessed from applications inside the apps folder
defp deps do
[
{:phoenix_ecto, "~> 3.0"},
{:phoenix_html, "~> 2.6"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:phoenix, "~> 1.3.2"},
{:phoenix_pubsub, "~> 1.0"},
{:poison, "~> 3.1"},
{:gettext, "~> 0.15"},
{:cowboy, "~> 1.0"},
{:httpoison, "~> 0.12"},
{:etoml, [git: "git://github.com/kalta/etoml.git"]},
{:wobserver, "~> 0.1.8"},
{:hackney, "~> 1.12"},
{:dogma, "~> 0.1", only: [ :dev, :test ], runtime: false},
{:ex_link_header, "~> 0.0.5"},
{:oauth2, "~> 0.9.2"},
{:joken, "~> 1.5"},
{:dialyxir, "~> 0.5", only: [ :dev ], runtime: false},
{:distillery, "~> 1.5", runtime: false},
{:edeliver, "~> 1.5", runtime: false},
{:ex_doc, "~> 0.18", only: :dev},
{:credo, "~> 0.9", only: [:dev, :test]},
{:confex, "~> 3.3.1"},
{:postgrex, "~> 0.13.5"},
{:mariaex, "~> 0.8"},
{:ecto, "~> 2.2"},
] ++ (
if System.get_env("SCOUT_KEY") do
[
{:scout_apm, "~> 0.4"},
]
else
[]
end
)
end
end