-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
86 lines (79 loc) · 2.32 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
defmodule Imager.Mixfile do
use Mix.Project
@description """
Image transformation proxy service.
For details check out: <https://github.com/appunite/imager>
"""
def project do
[
app: :imager,
version: version(),
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env()),
elixirc_options: [warnings_as_errors: true],
compilers: [:phoenix] ++ Mix.compilers(),
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: [plt_add_apps: [:erlexec]],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.circle": :test,
"coveralls.html": :test
],
description: @description
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {Imager.Application, []},
extra_applications: [:logger, :inets, :runtime_tools],
included_applications: [:erlexec]
]
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"},
{:phoenix_pubsub, "~> 1.0"},
{:plug_cowboy, "~> 2.0"},
{:plug, "~> 1.7"},
{:distillery, "~> 2.0"},
{:prometheus, "~> 4.1"},
{:prometheus_phoenix, "~> 1.2.0"},
{:prometheus_process_collector, "~> 1.4.0"},
{:ex_aws, "~> 2.0"},
{:ex_aws_s3, "~> 2.0"},
{:hackney, "~> 1.9"},
{:sweet_xml, "~> 0.6"},
{:jason, ">= 0.0.0"},
{:sentry, "~> 7.0"},
{:erlexec, "~> 1.9", runtime: false},
{:jose, "~> 1.8"},
{:toml, "~> 0.3"},
{:mockery, "~> 2.2"},
{:credo, ">= 0.0.0", only: [:dev], runtime: false},
{:dialyxir, ">= 0.0.0", only: [:dev], runtime: false},
{:junit_formatter, "~> 3.0", only: [:test]},
{:excoveralls, "~> 0.10", only: [:test]},
{:stream_data, "~> 0.1", only: [:test]},
{:temp, "~> 0.4", only: [:test]},
{:bypass, "~> 1.0", only: [:test]}
]
end
defp version do
case System.cmd("git", ~w(describe)) do
{vers, 0} -> String.trim(vers)
_ -> "0.0.0"
end
end
end