-
Notifications
You must be signed in to change notification settings - Fork 8
/
mix.exs
71 lines (66 loc) · 1.58 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
defmodule Urepo.MixProject do
use Mix.Project
def project do
[
app: :urepo,
version: "0.4.0",
elixir: "~> 1.10",
elixirc_paths: paths(Mix.env()),
start_permanent: Mix.env() == :prod,
preferred_cli_env: [
"coveralls.html": :test
],
test_coverage: [tool: ExCoveralls],
deps: deps(),
docs: docs(),
aliases: [test: "test --no-start"]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :crypto],
mod: {Urepo.Application, []},
env: [
name: "urepo",
port: 8080
]
]
end
defp paths(:test), do: ~w[lib test/support]
defp paths(_), do: ~w[lib]
defp docs do
[
main: "readme",
formatters: ["html"],
extras: ~w[
guides/configuration.md
README.md
CHANGELOG.md
],
groups_for_modules: [
Stores: ~r/^Urepo\.Store\./
]
]
end
defp deps do
[
{:plug_cowboy, "~> 2.3"},
{:hex_core, "~> 0.6.0"},
{:ex_aws_s3, "~> 2.0"},
{:sweet_xml, "~> 0.6.6"},
{:jason, "~> 1.0"},
{:hackney, "~> 1.16"},
# Deployment
{:distillery, "~> 2.1"},
{:systemd, "~> 0.5"},
# Observability
{:prometheus_plugs, "~> 1.1"},
# Development tools
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:credo, "~> 1.4", only: :dev, runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:excoveralls, ">= 0.0.0", only: [:dev, :test], runtime: false}
]
end
end